Begin Transaction;
Create TABLE MAIN.[Temp_970706128](
[cltcode] varchar(20) NOT NULL
,[cltname] varchar(50)
,[pycode] varchar(20)
,[wbcode] varchar(20)
,[address] varchar(100)
,[linkman] varchar(20)
,[tel] varchar(20)
,[memo] varhcar(50)
,[state] int
, Primary Key(cltcode)
);
Insert Into MAIN.[Temp_970706128] ([cltcode],[cltname],[pycode],[wbcode],[address],[linkman],[tel],[memo],[state])
Select [cltcode],[cltname],[pycode],[wbcode],[address],[linkman],[tel],[memo],[state] From MAIN.[sCltGeneral];
Drop Table MAIN.[sCltGeneral];
Alter Table MAIN.[Temp_970706128] Rename To [sCltGeneral];
Commit Transaction;
时间: 2024-11-06 07:28:22