0

我只想知道如何根据现有表列创建新表:

Current Table name : EmployeeDetails
Columns: empName, Address, pincode, state, city
Primary key is : pincode

我想从 EmployeeDetails 创建新表:

New Table name : Information
column :pincode, state, city ---> from EmployeeDetails table
4

1 回答 1

3

您可以使用select ... into

select  pincode
,       state
,       city
into    Information
from    EmployeeDetails
于 2013-04-13T17:56:04.887 回答