Interviews4 answers
What is an Identity ?
4 Answers
in identity you do not need to provide
key value externally
Mukesh KumarPosted Sep 3, 2017, 12:50 AM EDT
auto-increment primary key field.
Chetan RaiyaniPosted Jun 30, 2016, 4:24 AM EDT
http://www.w3schools.com/sql/sql_autoincrement.asp
Munesh SharmaPosted May 30, 2016, 9:15 PM EDT
Identity (or AutoNumber) is a column that automatically generates numeric values. A start and increment value can be set, but most DBA leave these at 1. A GUID column also generates numbers; the value of this cannot be controlled. Identity/GUID columns do not need to be indexed. SELECT @@IDENTITY - returns the last IDENTITY value produced on a connection SELECT IDENT_CURRENT('tablename') - returns the last IDENTITY value produced in a table SELECT SCOPE_IDENTITY() - returns the last IDENTITY value produced on a connection
Ajeet MishraPosted Sep 7, 2015, 11:13 PM EDT




