你试试看!
create table test_table_1
(
id int
)
然后插入数据
insert into test_table_1 values(1)
insert into test_table_1 values(2)
这样数据库里面就有两条数据了!
然后你再运行:
create table test_table_2
(
id int
)
再执行:
insert into test_table_2 select id from test_table_1
ok了!
共同学习!
温馨提示:答案为网友推荐,仅供参考