Monday 21, May 2012
Welcome Guest, Register | Login  
      Home    |    Tutorials    |    Free Ebooks    |    Free Scripts    |    Articles    |    Blog     |    About Us    |    Contact Us

SQL Insert

The INSERT statement allows you to insert a single record or multiple records into a table. The general syntax is as under.

Syntax 1:
INSERT INTO table_name VALUES (value1, value2,....)

The first syntax form of the INSERT INTO SQL clause doesn't specify the column names where the data will be inserted, but just their values:

 Syntax 2:
INSERT INTO table_name (column1, column2,...)
VALUES (value1, value2,....)

The second form of the SQL INSERT INTO command, specifies both the columns and the values to be inserted in them:

Example:
INSERT INTO empinfo(FirstName, LastName, Email, DOB) VALUES (‘Ajay, 'Rathor', 'ajayrathor@studiesinn.com', '08-24-1986')

ID

FirstName

LastName

Email

DOB

1

Ajay

Rathor

ajayrathor@studiesinn.com

08-24-1986

 

 
     
   
SQL Tutorial
 
  SQL Introduction
SQL Introduction
  SQL Select
SQL Select
  SQL Where Clause
SQL Where Clause
  SQL Distinct
SQL Distinct
  SQL AND Operator
SQL AND Operator
  SQL OR Operator
SQL OR Operator
  SQL Order By
SQL Order By
  SQL Insert
SQL Insert
  SQL Update
SQL Update
  SQL Delete
SQL Delete
  SQL Join
SQL Join
  SQL Inner Join
SQL Inner Join
  SQL Left Join
SQL Left Join
  SQL Right Join
SQL Right Join
  SQL Full Join
SQL Full Join
  SQL Create Database
SQL Create Database
  SQL Create Table
SQL Create Table
  SQL Constraints
SQL Constraints
  SQL Alter Table
SQL Alter Table
  SQL Truncate Table
SQL Truncate Table
  SQL Drop
SQL Drop
 
 
 
Web Designing Tutorials
  HTML Tutorial
HTML Tutorial
  DHTML Tutorial
DHTML  Tutorial
  CSS Tutorial
CSS Tutorial
  XHTML Tutorial
XHTML Tutorial
 
Programming Languages Tutorials
  C Language Tutorial
C Language Tutorial
  C++ Tutorial
C++ Tutorial
  Java Language Tutorial
Java Language Tutorial
  Data Structure Theory Tutorial
Data Structure Theory Tutorial
 
Server Side Scripting Tutorials
  PHP Tutorial
PHP Tutorial
  SQL Tutorial
SQL Tutorial
  ASP Tutorial
ASP Tutorial
 
Client Side Scripting Tutorials
  JavaScript Tutorial
JavaScript Tutorial
  VBScript Tutorial
VBScript Tutorial
 
 
 
POPULAR E-BOOKS
 
Download Develop your own database software  Ebook Develop your own database software
   
Download Algorithms in the Real World: Lecture Notes  Ebook Algorithms in the Real World: Lecture Notes
   
Download Affiliate Marketing Mistakes  Ebook Affiliate Marketing Mistakes
   
Download Viral Marketing Secrets Ebook Viral Marketing Secrets
   
Download Websites Creation 101  Ebook Websites Creation 101
   
 
Studiesinn.com © 2012 All Rights Reserved.
Website Designed & Developed by TechXprtz