Saturday, March 18, 2023

SQL INSERT QUERY

This Command use for Insert New Record in to Table .

INSERT INTO Syntax.

INSERT INTO  <Table name> (Table Column names) values (Parameters);

'Insert' statement example use  in Four way.

SQL Query Tasting  with  MSSQL Server Management Studio.

1).Insert with Custom Columns 

             Insert into Stud_Details(stud_ID,stud_Name)values(2,'Jone');




                                                                                                                                                                      
2)Inset with All Columns .

            Insert Into Stud_Details(Stud_Id,Stud_Name,Stud_adr,_stud_Dob)values(4,'JoneDear','Street-             B','2023-03-18');





3)Insert statement without Column names.
                Insert Into Stud_details values(5,'JoneMax','Street-X','2023-03-18');



4)Insert Query  with select Query .
            Insert into Stud_Details Select 6,Stud_Name,Stud_adr,_stud_Dob From Stud_Details where  Stud_Id=2;







         Thank You....

No comments:

Post a Comment

SQL INSERT QUERY

This Command use for Insert New Record in to Table . INSERT INTO Syntax. INSERT INTO  < Table name > ( Table Column names ) values (...