This will depend on the database but for SQL Server, this could be achieved as follows:
alter table Example
add NewColumn int identity(1,1)
More Related Contents:
- I dont know sql syntax for my table [closed]
- SQL QUERY COUNT THEN ADD
- SQL server command help and tutorials for specific commands?
- Making a dynamic pivot table but without using the fiddle
- Get top 1 row of each group
- How to return only the Date from a SQL Server DateTime datatype
- Referring to a Column Alias in a WHERE Clause
- Convert Datetime column from UTC to local time in select statement
- How to implement LIMIT with SQL Server? [duplicate]
- Why is SQL Server losing a millisecond?
- converting Epoch timestamp to sql server(human readable format)
- What are Covering Indexes and Covered Queries in SQL Server?
- How do I split a delimited string so I can access individual items?
- What’s the best way to select the minimum value from several columns?
- Add a summary row with totals
- Counting DISTINCT over multiple columns
- Is there a performance difference between CTE , Sub-Query, Temporary Table or Table Variable?
- Why use Select Top 100 Percent?
- How do I find duplicates across multiple columns?
- Calculate business hours between two dates
- Correct use of transactions in SQL Server
- SQL Server UNION – What is the default ORDER BY Behaviour
- SSIS Source Format Implicit Conversion for Datetime
- store arabic in SQL database
- What is the Null Character literal in TSQL?
- how does SELECT TOP works when no order by is specified?
- Check if table exists and if it doesn’t exist, create it in SQL Server 2008
- How to execute a stored procedure inside a select query
- What is the most appropriate data type for storing an IP address in SQL server? [duplicate]
- SQL Inner Join On Null Values