INSERT DATA in TABLE with SQL Command in PHP

 If we want to add data in table named "personal" then we can use below shown sql query :

INSERT INTO personal(id,name,percentage,age,gender,city) 

VALUES(1,"Ram Kumar",45,19,"M",1),

 (2,"Sarita Kumari",55,22,"F",2),

 (3,"Salman Khan",62,20,"M",2),

 (4,"Juhi Chawla",47,18,"F",3),

 (5,"Anil Kapoor",74,22,"M",1),

 (6,"John Abraham",64,21,"M",2),

 (7,"Shahid Kapoor",52,20,"M",1);

Comments

Popular posts from this blog

Ajax Insert Records in Database Tutorial in PHP

Displaying Database data using Class, Object, Constructor, Destructor in PHP MySql

SubQuery with EXISTS and NOT EXISTS in PHP