Home > Database > Mysql Tutorial > body text

增加自增列并复制为新表

WBOY
Release: 2016-06-07 14:56:38
Original
1156 people have browsed it

增加自增列并复制为新表 无 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'
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template