0% found this document useful (0 votes)
21 views1 page

DMBS Prac

The document provides SQL commands for database management, including creating and dropping databases, using a specific database, creating a table for students, inserting values into that table, and selecting data from it. It includes examples for each command, demonstrating how to manage and retrieve data effectively. The focus is on basic operations within a database context.

Uploaded by

yuakayacaba
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views1 page

DMBS Prac

The document provides SQL commands for database management, including creating and dropping databases, using a specific database, creating a table for students, inserting values into that table, and selecting data from it. It includes examples for each command, demonstrating how to manage and retrieve data effectively. The focus is on basic operations within a database context.

Uploaded by

yuakayacaba
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

create database DB_NAME; TO CREATE THE DATA BASE

create database if not exists DB_NAME; CRETAE AND CHECK FOR SAME
DATABASE

drop database db_name;


drop database if exists db_name; DELETE DATABSE

USE TABLE BY NAME


USE db_NAME;

create table students (


id INT PRIMARY KEY,
NAME VARCHAR(50),
AGE INT not null
); CREATE THE TABLE DBMS

insert into students values (1,"arpan",24);


insert into students values (2,"darpan",28);

TO INSERT THE VALUES IN TABLES

select *from students; TO PRINT THE TABLE

select NAME , AGE FROM STUDENTS; TO PRINT A SPECIFI COLOUM INTHE


TABLE

You might also like