IDENTITY COLUMNS

These are those columns which are used for auto-generation of integer values

in a particular sequence.


example:- we can use identity columns to auto-generate the ID'S in the categoryid

column of the category table.

There can only be 1 identity column per table.
(1,1):
1:start values: (seed)

1:interval  for the next value (increment)


create table  cat
(catid int identity(001,002),
catname varchar(10),
description varchar(30))

insert cat values('bev', 'teas and coffees')
IDENTITY COLUMNS Reviewed by Rupesh on 12:03 Rating: 5

No comments:

All Rights Reserved by Technology from Developers Eye © 2014 - 2015
Powered By Blogger, Designed by Aadics
Disclaimers:: The information provided within this blogsite is for general informational purposes only. While we try to keep the information up-to-date and correct, there are no representations or warranties, express or implied, about the completeness, accuracy, reliability, suitability or availability with respect to the information, products, services, or related graphics contained in this blogsite for any purpose.The author does not assume and hereby disclaims any liability to any party for any loss, damage, or disruption caused by errors or omissions, whether such errors or omissions result from accident, negligence, or any other cause.

Contact Form

Name

Email *

Message *

Powered by Blogger.