Skip to main content
World Nomads Logo

How to insert data in partial fields in a table of MySQL? Happy New Year 2018!




MySQL INSERT
DotColor - Color by Number - Peishu Su
Example 2: for partial fields

In such case, it is mandatory to specify field names.

INSERT INTO emp(id,name) VALUES (7, 'Sonoo'); 
 
Example 3: inserting multiple records

Here, we are going to insert record in the "cus_tbl" table of "customers" database.

INSERT INTO cus_tbl (cus_id, cus_firstname, cus_surname) VALUES (5, 'Ajeet', 'Maurya'),  (6, 'Deepika', 'Chopra'), (7, 'Vimal', 'Jaiswal');

Subscribe channel on YouTube
Read this post on Blogger
Like page on Facebook
Tweet about video on twitter
Let's chat on whatsapp
See you at Instagram
Google+

Comments

Contact Us

Name

Email *

Message *