45,000 Jobs - Get an Interview Call,  Post Your Resume Here
SURESHKUMAR.NET FORUMS
Registered Member Login:
Not a member? Register today!



Welcome to the SURESHKUMAR.NET FORUMS.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.




A SQL Query.Please help

        

Reply
 
LinkBack Thread Tools Display Modes
Old 14-03-09, 03:56 PM   #1 (permalink)
Junior Member
 
jaango123's Avatar
 
Join Date: Mar 2009
Posts: 22
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 1 jaango123 is on a distinguished road
A SQL Query.Please help

Can you me know whether the below statement is correct.

create table testtable
(id int identity(1,1) primary key,
name varchar(20) not null)


insert into testtable
values ('test1') , ('test')


if it is wrong, why? where this statement will work fine ??

jaango123 is offline Offline   Reply With Quote
Old 02-07-09, 05:33 PM   #2 (permalink)
Junior Member
 
Join Date: Jul 2009
Age: 24
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1 Damganpoor@9 is on a distinguished road
Thumbs up Re: A SQL Query.Please help

Hai,
U can not insert, because u have given that it is identity column.. it automatically increments as of ur second column..which is inserted.
Damganpoor@9 is offline Offline   Reply With Quote
Reply

Tags
queryplease , sql


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
(Exp: 3 - 6 Years) SQL Star International Ltd looking for Dotnet Developer (Technical Designer) with Webservices jobs Experienced Jobs 0 12-11-08 05:55 PM
(Exp: 3 - 6 Years) SQL Star International Ltd looking for Dotnet Developer (Technical Designer) jobs Experienced Jobs 0 06-11-08 06:26 PM
Requirement for SQL L2 DBA at SQL Star International Ltd jobs Experienced Jobs 0 14-08-08 02:12 PM
SQL Star International Ltd Openings on SQL L2 DBA jobs Experienced Jobs 0 12-08-08 01:25 PM
Requirement for SQL DBA /SQL Database Administrator jobs Experienced Jobs 1 13-06-08 10:02 AM


All times are GMT +6.5. The time now is 06:42 AM.

More Interview Questions Here...

Content Relevant URLs by vBSEO 3.3.0