Insert
Syntax:
Example:
INSERT INTO tableIf we are inserting datas to entire fields then no need to specify the fieldnames.
(column-1, column-2, ... column-n)
VALUES
(value-1, value-2, ... value-n);
Example:
INSERT INTO EMPLOYEE_DETAILS VALUES('Akhilash',22,2500,'Developer');
INSERT INTO EMPLOYEE_DETAILS VALUES('Akhilash',22,250.90,'Developer');
INSERT INTO EMPLOYEE_DETAILS VALUES('Akhilash',22,250.90,'Developer');
OutPut
INSERT INTO EMPLOYEE_DETAILS VALUES('Akhilash',22,250.90,'Developer');
If we want to insert to particular fields then specify that particular fields before 'VALUES' keyword.
Syntax:
Syntax:
INSERT INTO suppliers
(supplier_id, supplier_name)
VALUES
(24553, 'IBM');
Comments
Post a Comment