SQL TUTORIALS-
SQL INSERT INTO Statement
Introduction-
-πSQL INSERT INTO β Explanation with Example (For learntosap.com)
SQL INSERT INTO statement is used to insert new records into a table...
β 1-If specifies the table name and the values to be inserted into its columns. You can either insert values into all columns or specify certain columns only.basic syntax is Follow:-
INSERT INTO table_name
VALUES (value1, value2, value3, ...);
β 2-If inserting into all columns, donβt need to write the column names in the INSERT INTO statement if you're providing values for all the columns in the exact order they are defined in the table..basic syntax is Follow:-
INSERT INTO table_name VALUES (value1, value2);
ID | Name | Department | Salary |
---|---|---|---|
1 | ANNI | IT | 10000 |
2 | POOJA | IT | 9000 |
3 | RAJ | SALES | 5000 |