Professional Documents
Culture Documents
(Lecture 5)
SQL Syntax
Aga Private Institute for Computer Science
Programing Department
5th Stage
INSERT INTO ?
SELECT ?
ORDER BY?
2/67
INSERT INTO
The SQL INSERT INTO Statement is used to add new rows of
data to a table in the database.
Syntax: Or :
3
INSERT INTO
Example:
INSERT INTO CUSTOMERS
VALUES (7 , 'Muffy’ , 24 , 'Indore‘ , 10000.00 );
Example:
INSERT INTO CUSTOMERS (ID,NAME,AGE,ADDRESS,SALARY)
VALUES (1, 'Ramesh', 32, 'Ahmedabad', 2000.00 );
4
Note
Note : Copy all data in a table into another table, must be columns have
the same data types, So can be use condition.
6
SELECT
SQL SELECT Statement is used to fetch the data from a database table.
7
SELECT
8
ORDER BY
9
DISTINCT
Syntax :
10