My questions is
how to increment a column\'s value by 1.
For example, suppose a column ID has values 1,2,3,4, ..
ID
You can use IDENTITY which will do this for you.
CREATE TABLE [dbo].[MyTable]( [MyTableID] [int] IDENTITY(1,1) NOT NULL, -- Other columns )
When you insert your first record, you'll get an Id of 1.
Id