Denki 發表於 2024年5月6日 22:54:01

可選擇式複製資料欄位

有時要複製整個資料內容除了那個被玩成幾萬個id的欄位

首先要先複製一個架子,
create table Websites1 ( Id int identity(1,1) primary key not null, Name nvarchar(50) not null, Age int not null, Sex char(1) not null )

INSERT INTO Websites1 (name, Age, Sex)
SELECT name, Age, Sex FROM Websites
頁: [1]
檢視完整版本: 可選擇式複製資料欄位