this may seem very lazy, but can someone exaplin this bit of code for me?
regID int IDENTITY(0,1)
It is part of an SQL CE command in a VB app, but I just don't get what the regID in IDENTITY (0,1) is in there for.
the full code is
Expand|Select|Wrap|Line Numbers
- 'Create SQL command to create the tblDetails table
- Dim cmdTabla As New SqlCeCommand("CREATE TABLE tblDetails(regID int IDENTITY(0,1) PRIMARY KEY, Flower_ID NTEXT, Name_Eng NTEXT, Name_Lat NTEXT, Location_ID NTEXT, Habitat_ID NTEXT, Season_ID NTEXT, Family_ID NTEXT, Size NTEXT, Description NTEXT)", conn)