Home >Database >Mysql Tutorial >增加自增列并复制为新表

增加自增列并复制为新表

WBOY
WBOYOriginal
2016-06-07 14:56:381197browse

增加自增列并复制为新表 无 EXEC sp_dboption 'pub','select into/bulkcopy','true'SELECT ID=IDENTITY(int,1,1),OldTable.* INTO NewTable FROM OldTableEXEC sp_dboption 'pub','select into/bulkcopy','false'

增加自增列并复制为新表
EXEC sp_dboption 'pub','select into/bulkcopy','true'
SELECT ID=IDENTITY(int,1,1),OldTable.* INTO NewTable FROM OldTable
EXEC sp_dboption 'pub','select into/bulkcopy','false'
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:SQL Server延时Next article:MySQL查看所有存储过程