Home Sql Mysql-example Mysql Insert



Mysql Insert
Posted on: January 17, 2009 at 12:00 AM
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      |
+----------+--------------+

Related Tags for Mysql Insert:
sqlmysqlctableinsertsedtabrowrowsrecordrecordstowseuseinmsmyisrdsrtssrdthabablo


More Tutorials from this section

Ask Questions?    Discuss: Mysql Insert   View All Comments

Post your Comment


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

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.