Tuesday, December 14, 2010

creating identity table & insert values

create table cricketers
(
    playerno int identity(100,2),
    playername  varchar(50),                             
    country char(15),
    point int,
    postion varchar(50)
)

insert into cricketers values('sachin tendulcar','india','876','batsman')
insert into cricketers values('jaques kallis','south africa',798,'all rounder')

No comments:

Post a Comment

sql server index

sql index An index is an internal table structure that sql server uses to provide quick access to rows of a table based on the values...