Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Syntax to insert data in the table

This is a discussion on Syntax to insert data in the table within the Data Warehousing forums, part of the Databases category; Question asked by visitor Kishor How to insert value in SQL Table? I have created a table stime etime both of data type is datetime What is syntax of insert ...

Go Back   Geeks Talk > Databases > Data Warehousing
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

Data Warehousing Data Warehousing

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-12-2007
Expert Member
 
Join Date: Feb 2007
Posts: 1,279
Thanks: 0
Thanked 192 Times in 154 Posts
Geek_Guest has a spectacular aura aboutGeek_Guest has a spectacular aura aboutGeek_Guest has a spectacular aura about
Syntax to insert data in the table

Question asked by visitor Kishor

How to insert value in SQL Table?
I have created a table stime etime both of data type is datetime
What is syntax of insert the data in the table?
Reply With Quote
The Following User Says Thank You to Geek_Guest For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 04-12-2007
Contributing Member
 
Join Date: Mar 2007
Location: renukoot(sonbhadra)
Posts: 39
Thanks: 5
Thanked 4 Times in 4 Posts
rohit dwivedi9450 is on a distinguished road
Re: Syntax to insert data in the table

insert into <table name > values ('name','address',.....................);
this is one of syntex
Reply With Quote
  #3 (permalink)  
Old 05-02-2007
Moderator
 
Join Date: Sep 2006
Location: Delhi (India)
Posts: 910
Thanks: 12
Thanked 108 Times in 76 Posts
jainbrijesh will become famous soon enoughjainbrijesh will become famous soon enough
Re: Syntax to insert data in the table

insert into <table name > column's name(column_1, column_2,....) values ('name','address',.....................);

example:-

INSERT INTO EMPLOYEE_TBL (EMP_ID, LAST_NAME, FIRST_NAME, MIDDLE_NAME, ADDRESS, CITY, STATE, ZIP, PHONE)

VALUES ('123456789', 'SMITH', 'JOHN', 'JAY', '12 BEACON CT','INDIANAPOLIS', 'IN', '46222', '3172996868');
__________________
--
Brijesh Jain

Last edited by jainbrijesh; 05-02-2007 at 02:27 AM.
Reply With Quote
  #4 (permalink)  
Old 09-04-2007
Junior Member
 
Join Date: Feb 2007
Location: pulivendula,kadapa(district),a.p,india
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
yagnam ramesh babu is on a distinguished road
Re: Syntax to insert data in the table

eg:-insert into mca values(&sid,'&sname',&dob);
Reply With Quote
  #5 (permalink)  
Old 09-07-2007
Contributing Member
 
Join Date: May 2007
Location: MUMBAI
Posts: 85
Thanks: 34
Thanked 5 Times in 3 Posts
N SRIRAM K is on a distinguished road
Re: Syntax to insert data in the table

Adding to the above friend's suggestion:

Use same above they mentioned the syntax. but value must be like '21-Sep-2007'
__________________
Thx
SRIRAM N
Hope Everything Good
Reply With Quote
  #6 (permalink)  
Old 09-11-2007
Junior Member
 
Join Date: Feb 2007
Location: pulivendula,kadapa(district),a.p,india
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
yagnam ramesh babu is on a distinguished road
Re: Syntax to insert data in the table

as our friend said the date format is must be in like '21-aug-2007' but it depends on the dbmsystem to verify which format is supported type the command




sysdate



my friend sriram is it correct?
please kindly mail me the correct one if it is worng
Reply With Quote
  #7 (permalink)  
Old 09-18-2007
Junior Member
 
Join Date: Aug 2007
Location: Pune
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
raja219 is on a distinguished road
Re: Syntax to insert data in the table

Insert into table values('18-sep-2007','18-sep-2007');
Reply With Quote
Reply

  Geeks Talk > Databases > Data Warehousing

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
insert picture to table rashinkar Oracle 9 04-25-2009 11:53 AM
Add a new column to a table and insert values Ajit Kumar Maharatha Oracle 11 12-12-2008 10:58 AM
Display data in the form of table in Struts Geek_Guest JSP 3 10-15-2008 02:39 AM
Retrieve data from emp table Sampurna SQL 4 08-13-2008 08:07 AM
Syntax for Cascade Prompt JobHelper Data Warehousing 0 12-21-2006 09:10 AM


All times are GMT -4. The time now is 09:06 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved