Warning: The magic method ModuloBox::__wakeup() must have public visibility in /home/codewwdz/public_html/wp-content/plugins/modulobox/modulobox.php on line 52

Warning: The magic method ModuloBox_Base::__wakeup() must have public visibility in /home/codewwdz/public_html/wp-content/plugins/modulobox/includes/base.class.php on line 37

Warning: The magic method ModuloBox_Normalize_Settings::__wakeup() must have public visibility in /home/codewwdz/public_html/wp-content/plugins/modulobox/includes/normalize-settings.class.php on line 143

Warning: The magic method ModuloBox_Gallery::__wakeup() must have public visibility in /home/codewwdz/public_html/wp-content/plugins/modulobox/public/gallery.class.php on line 61

Warning: Cannot modify header information - headers already sent by (output started at /home/codewwdz/public_html/wp-content/plugins/modulobox/modulobox.php:52) in /home/codewwdz/public_html/wp-content/themes/hestia-pro/functions.php on line 7
Insert into DML Statement - Coders Helpline
  • Definition :

Insert into statement is used to add new or fresh record/s into an existing database table.

  • Syntax :

INSERT INTO table-name (field or attribute or column-name1, column-name2, column-name3, column-name4, column-name5VALUES (value1, value2, value3, value4, value5 );(Press Enter)

  • Example :
INSERT INTO employee (emp_id, emp_name, emp_addr, emp_dept, emp_dob, emp_sal, emp_mob) VALUES ('105M', 'Rohit', 'Mumbai', 'Manager', '05/22/2020', 17500, 9334582186);(Press Enter)

--------------------------------------------  OR  ----------------------------------------

INSERT INTO employee (emp_id, emp_name, emp_addr, emp_dept, emp_dob, emp_sal, emp_mob) VALUES ("105M", "Rohit", "Mumbai", "Manager", "05/22/2020", 17500, 9334582186);(Press Enter)

--------------------------------------------  OR  ----------------------------------------

INSERT INTO employee VALUES ('105M', 'Rohit', 'Mumbai', 'Manager', '05/22/2020', 17500, 9334582186);(Press Enter)




[NB: To show table data use (Select * from employee)]

For more Select query use this link

Loading

Categories: SQL

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.