??????????(???????)
????????? ???????[ 2016/10/26 15:46:37 ] ????????????? ?????
????1????????Scores
1 create table Scores --????
2 (Id int identity(1??1) primary key??--???????????????к???????
identity(1??1)???Id?д?1????????????????1
3 Date datetime not null?? --?????????datetime?????????
4 Name nvarchar(50) not null??
5 Score nvarchar(2) --??????£????????
6 )
????2????????Scores?NewScores
????1 exec sp_rename ' Scores ' ?? ' NewScores '
????3???????Scores
????1 drop table Scores --???????????????????????????????
????4??????????
????1 truncate table Scores --???????????е?????
????5???????Score? not null
????1 alter table Scores
????2 alter column Score nvarchar(2) not null
????6???????
????1 alter table Scores
????2 add new nvarchar(20) not null
????7?????????
????1 exec sp_rename 'Scores.Name'??'NewName'??'column'
????8???????
????1 alter table Scores
????2 drop column new
????9?????identity??
???????????????????????????С?????????в?????????????????Id???????????????????о???identity?????Id??Ρ?
1 exec sp_pkeys @table_name='Scores' --?????????
2 alter table Scores drop constraint PK__Scores__3214EC074E3D66D2 --?????????????
3 alter table Scores drop column Id --??Id????
4 alter table Scores add Id int identity(1??1) --?????????(???Id?в???????)
5 alter table Scores add Id int identity(1??1) constraint pk primary key --????????У?????Id??????????pk
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11