Add identity Column to Table by TSQL and GUI in SQL Server-SQL Server / TSQL Tutorial Part 40

Опубликовано: 04 Май 2016
на канале: TechBrothersIT
4,456
15

SQL Server / TSQL Tutorial Scenario: How to Add identity Column to Table by TSQL and GUI in SQL Server

You are working as SQL Server Developer and you have created a dbo.Customer table by using below Script.

CREATE TABLE Customer (
FirstName VARCHAR(50)
,LastName VARCHAR(50)
,Age SMALLINT
,PhoneNumber CHAR(9)
,DOB DATE
,Gender CHAR(1)
)
You need to add a column CustomerId that should start from 1 and every time new row inserts into table, it should increment by 1.


Link to Scripts used in the video
http://www.techbrothersit.com/2016/02...


Check out our website for Different SQL Server, MSBI tutorials and interview questions
such as SQL Server Reporting Services(SSRS) Tutorial
SQL Server Integration Services(SSIS) Tutorial
SQL Server DBA Tutorial
SQL Server / TSQL Tutorial ( Beginner to Advance)
http://www.techbrothersit.com/


Смотрите видео Add identity Column to Table by TSQL and GUI in SQL Server-SQL Server / TSQL Tutorial Part 40 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь TechBrothersIT 04 Май 2016, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 4,456 раз и оно понравилось 15 людям.