Professional Documents
Culture Documents
Syntax
The syntax for the CREATE TABLE statement in SQL is:
CREATE TABLE table_name
(column_name1 datatype,
column_name2 datatype,
... column_nameN datatype
);
Here, column1, column2, ... are the field names of the table you want to select data
from.
If you want to select all the fields available in the table, use the following syntax:
The WHERE clause is used to filter records.The WHERE clause is used to extract
only those records that fulfill a specified condition.
WHERE Syntax
SELECT column1, column2, ...
FROM table_name
WHERE condition;
Syntax
UPDATE table_name
SET column1 = value1, column2 = value2, ... columnN = valueN
WHERE [condition];
DELETE Statement
The SQL DELETE statement is a used to delete a one or more records from a
table.
Syntax
The syntax for the DELETE statement in SQL is:
DELETE FROM table
[WHERE conditions];
Parameters or Arguments
table
WHERE conditions
Optional. The conditions that must be met for the records to be deleted. If no
conditions are provided, all records in the table will be deleted.