4
Reply

What is an Identity ?

Ajeet Mishra

Ajeet Mishra

Sep 08, 2015
453
0

    in identity you do not need to providekey value externally

    Mukesh Kumar
    September 03, 2017
    0

    auto-increment primary key field.

    Chetan Raiyani
    June 30, 2016
    0

    http://www.w3schools.com/sql/sql_autoincrement.asp

    Munesh Sharma
    May 31, 2016
    0

    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 Mishra
    September 08, 2015
    0