Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi,
Here's a short program of a table in SQL.
create table students
(
rollno int identity,
name char(20)
)In order to insert explicit value in the identity column (i.e. rollno), I need to specify that the identity_insert is on. After having this mode on, if I insert the value (0008) in the identity column then after the execution of the query, the value is displayed as (8), whereas I want it to be (0008). Please help me to do so.

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |