Share on Google+Share on Google+

Mysql Insert

Mysql Insert is used to insert the records or rows to the table.

Mysql Insert


Mysql Insert is used to insert the records or rows to the table.

Understand with Example

The Tutorial illustrate an example from 'Mysql Insert'.To grasp this example we create a table 'Stu'.The create table is used to a table 'Stu' with required fieldname and datatype. 





Create Table Stu

Create Table Stu(Id int,Name Varchar(15));

Insert values into Stu

The insert into is used to add the records or rows value to the table 'Stu'

Insert Into Stu values(1,'Ajay');
Insert Into Stu values(2,'Bhanu');
Insert Into Stu values(3,'Komal');
Insert Into Stu values(4,'Rakesh');
Insert Into Stu values(5,'Santosh');

Stu Table

To view all the records of table 'Stu',we use select query.

| Icard_No | Student_Name |
| 1        | Ajay         |
| 2        | Bhanu        |
| 3        | Komal        |
| 4        | Rakesh       |
| 5        | Santosh      |



Posted on: January 17, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Discuss: Mysql Insert   View All Comments

Post your Comment

Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image