INSERT INTO/UPDATE TABLE/DELETE TABLE
INSERT INTO table_name(column_1,column_2)
VALUES(value_1,value_2)
VALUES(value_1,value_2)
SELECT * from [dbo].[WinForm_1]
INSERT INTO WinForm_1 (Name,Age)
VALUES ('Raj','21').
VALUES ('Raj','21').
IDis the PRIMARY key with AUTO INCREMENT value . PRIMARY key is the value used to identify records uniquely. When the new record is inserted in table , the value of the ID Attribute is automatically increased to next value. This is done with the help of AUTO INCREMENT Feature.We will learn more about Keys in next coming posts.
INSERT INTO Winorm_1 values('4','karan','32')
UPDATE table_ name
SET column_1=value_1 where condition
SET column_1=value_1 where condition
UPDATEV[WinForm_1]
SET Name='karan' where ID=4.
SET Name='karan' where ID=4.
UPDATE table_ name
SET column_1=value_1 column_2=value_2 where condition......
SET column_1=value_1 column_2=value_2 where condition......
UPDATE WinForm_1
SET name ='vk' , age='33' where ID=4
SET name ='vk' , age='33' where ID=4
DELETE FROM table_name 
WHERE condition
WHERE condition
| ID | Name | 
State | 
|---|---|---|
| 1 | Anoop | 
Delhi | 
| 2 | Ankit Pandey | 
Pune | 
| 3 4  | 
Gaurav Kapoor Arjit Singh  | 
Delhi Punjab  | 
DELETE from Detail 
WHERE ID=3
WHERE ID=3
DELETE from Detail 
WHERE Name='Anoop'
WHERE Name='Anoop'
DELETE * from table_name
TRUNCATE TABLE table_name
TRUNCATE TABLE Details
INSERT INTO/UPDATE TABLE/DELETE TABLE
 
        Reviewed by LanguageExpert
        on 
        
August 22, 2017
 
        Rating: 
 
        Reviewed by LanguageExpert
        on 
        
August 22, 2017
 
        Rating: 







No comments