Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
问题:
我有一个名为 user 的 100 行表我在创建一个名为 village 的新表之后,我想让它自动填充新表中的 100 行
您可以像这样使用选择来完整记录新表
insert into village (user_id, owner) select id, username from `user`