i
SQL Select, Select distinct
Select Distinct Clause
SQL Where Clause
SQL And, Or, Not
SQL Aliases
SQL Like
SQL In
SQL Between
Order By Clause
Aggregate Functions (Min, Max, Avg, Sum, Count)
Count
AVG() Syntax
SUM
MIN
MAX
Group By
HAVING Clause
SQL Insert Into
SQL Create Table
SQL Drop Table
SQL Alter Table
SQL Constraints
SQL Not Null
SQL Unique
SQL Primary Key
SQL Foreign Key
SQL Default
The INSERT INTO statement is used to insert a value into the table in SQL.
Here is the syntax to INSERT INTO
Insert into table_name Values (column1,column2,…); The order of specifying the value is essential. Or Insert into table_name (column1,column2,column3,…) Values (column1,column2,column3…); |
The following example inserts a value into a table
Insert into EMPLOYEES
Values(101,’Neena’,’Kochhar’,108);
OR
Insert into EMPLOYEES (EMPLOYEE_ID,FIRST_NAME,LAST_NAME,MANAGER_ID)
Values(101,’Neena’,’Kochhar’,108);
EMPLOYEE_ID |
FIRST_NAME |
LAST_NAME |
MANAGER_ID |
101 |
Neena |
Kochhar |
108 |
Don't miss out!