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 | +----------+--------------+ |
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.
Ask Questions? Discuss: Mysql Insert View All Comments
Post your Comment