【发布时间】:2022-12-11 04:50:14
【问题描述】:
代码:
create table "tab1" ("c1" varchar(max));
create table "tab2" ("c3" integer);
insert into tab1 values(N'asd'), (N'qweqwe');
insert into tab2 values(123), (345);
select
c_newname as myname
from
(
select "c1" as c_newname from "tab1"
union all
select cast("c3" as varchar(max)) from "tab2"
) as T_UNI;
如何创建新表(“tab3”)并将值从(tab1)、(tab2)插入表(“tab3”)。谢谢...
【问题讨论】:
标签: sql