如何用一条命令把DB1.单位名称 复制到 DB2.单位名称 ---------------------------- use db2 appe from db1 field 单位名称 是否可以用COPY 命令直接创建DB2 同时把字段名“总收益”改为“月收益” ----------------------------------- 用COPY 命令直接创建DB2: use db1 copy to db2把字段名“总收益”改为“月收益”: 我不清楚了,不知道可不可以
字段名运行时似乎是不可以改。 转入数据可以使用sql语句。比如 select 单位名称,总收益 as 月收益 from db1 into table db2 如果db1原有的数据需要保留、可以先转到过渡表。
select 单位名称,总收益 as 月收益 from db1 into table db2 is right
----------------------------
use db2
appe from db1 field 单位名称
是否可以用COPY 命令直接创建DB2 同时把字段名“总收益”改为“月收益”
-----------------------------------
用COPY 命令直接创建DB2:
use db1
copy to db2把字段名“总收益”改为“月收益”:
我不清楚了,不知道可不可以
转入数据可以使用sql语句。比如
select 单位名称,总收益 as 月收益 from db1 into table db2
如果db1原有的数据需要保留、可以先转到过渡表。
is right