![]() |
|
![]() |
| LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Junior Member Join Date: Mar 2009
Posts: 22
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 1 | 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 ?? |
| | |
| | #2 (permalink) |
| Junior Member Join Date: Jul 2009 Age: 24
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1 | 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. ![]() |
| | |
![]() |
| Tags |
| queryplease , sql |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
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 |
| More Interview Questions Here... |