0% found this document useful (0 votes)
25 views

SQL Commands

The document discusses three SQL commands: CREATE defines each element of a table uniquely with a minimum of three attributes - name, data type, and size; INSERT adds new rows of data to a table with values specified either by column name or without column names; UPDATE modifies existing rows in a table by setting column values where a condition is met.

Uploaded by

Apurva Patil
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

SQL Commands

The document discusses three SQL commands: CREATE defines each element of a table uniquely with a minimum of three attributes - name, data type, and size; INSERT adds new rows of data to a table with values specified either by column name or without column names; UPDATE modifies existing rows in a table by setting column values where a condition is met.

Uploaded by

Apurva Patil
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 5

SQL

COMMANDS
CREATE
Define each COMMAND
element of the table uniquely .

Each column has minimum of three attribute

they are –
name
data type
size
Syntax :-
create table table_name(col 1 data type,……,col n
data type);
INSERT COMMAND
This command is used to add new rows of data to the table .
Syntax :-
Insert into table_name (col 1,col 2,….col n)
values(value 1,value 2,…..,value n);
If we adding all the values for all column of the table we need net
specify the column name.
Syntax :-
Insert into table_name values(value 1,value 2,…., value n);
Update command
This command is used to modify the existing row in the table .
syntax :-
Update table_name set column 1=value 1
column 2=value 2
…column n=value n
[where condition];
Ex. Update student set address=‘pune’
where roll-on=1;

You might also like