Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. identity column

identity column

Scheduled Pinned Locked Moved Database
databasequestion
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    inayat basha
    wrote on last edited by
    #1

    hi all, can any one tell me what is an identity column and what is the use of this column in sql table... Regards, S.Inayat basha.

    R S G 3 Replies Last reply
    0
    • I inayat basha

      hi all, can any one tell me what is an identity column and what is the use of this column in sql table... Regards, S.Inayat basha.

      R Offline
      R Offline
      R Giskard Reventlov
      wrote on last edited by
      #2

      Try using Google: Identity column[^]. This was the first result.

      me, me, me "The dinosaurs became extinct because they didn't have a space program. And if we become extinct because we don't have a space program, it'll serve us right!" Larry Niven nils illegitimus carborundum

      1 Reply Last reply
      0
      • I inayat basha

        hi all, can any one tell me what is an identity column and what is the use of this column in sql table... Regards, S.Inayat basha.

        S Offline
        S Offline
        Scubapro
        wrote on last edited by
        #3

        An identity column gives an unique identificationnumber to every row in a table. Identity columns are frequently used, especially to establish links with other tables to keep your references in order. e.g. TABLE NAMES (Customer_ID, FirstName, LastName) TABLE ADDRESS ([ADDR_ID], Customer_ID, Address)

        G 1 Reply Last reply
        0
        • I inayat basha

          hi all, can any one tell me what is an identity column and what is the use of this column in sql table... Regards, S.Inayat basha.

          G Offline
          G Offline
          Ganu Sharma
          wrote on last edited by
          #4

          identity automatically increment your column values from seed property specified in identify clause. exam create table tbl ( i int identity(1000,1), name varchar(100)) output as 1000 table1 1001 table2 1002 table3

          Ganu Sharma :)

          1 Reply Last reply
          0
          • S Scubapro

            An identity column gives an unique identificationnumber to every row in a table. Identity columns are frequently used, especially to establish links with other tables to keep your references in order. e.g. TABLE NAMES (Customer_ID, FirstName, LastName) TABLE ADDRESS ([ADDR_ID], Customer_ID, Address)

            G Offline
            G Offline
            Ganu Sharma
            wrote on last edited by
            #5

            identity automatically increment your column values from seed property specified in identify clause.

            exam
            create table tbl
            ( i int
            identity(1000,1), name varchar(100))

            output 1000 ;P 1001 1002

            Ganu Sharma

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups