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?
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?
insert intovalues ('name','address',.....................);
this is one of syntex
05-02-2007 #3Moderator
- Join Date
- Sep 2006
- Answers
- 920
Re: Syntax to insert data in the table
insert intocolumn'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');
Last edited by jainbrijesh; 05-02-2007 at 01:27 AM.Regards,
Brijesh Jain
---------------------------------------------------------
Connect with me on Skype: jainbrijesh
Google Plus : jainbrijeshji
09-04-2007 #4Junior Member
- Join Date
- Feb 2007
- Answers
- 6
Re: Syntax to insert data in the table
eg:-insert into mca values(&sid,'&sname',&dob);
09-07-2007 #5Contributing Member
- Join Date
- May 2007
- Answers
- 45
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
09-11-2007 #6Junior Member
- Join Date
- Feb 2007
- Answers
- 6
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
09-18-2007 #7Junior Member
- Join Date
- Aug 2007
- Answers
- 3
Re: Syntax to insert data in the table
Insert into table values('18-sep-2007','18-sep-2007');