1
RedBeanIce 2020 年 9 月 25 日
一个表三个字段,id, username, password
不写*,写三个字段 然后 'null', 'username', 'password' 类似下面这种 insert into sys_userinfo (id, userCode, username, password) select null, 123456, 'username', 'password' from t_product; |
2
tydl 2020 年 9 月 25 日
navicat 工具
1.导出原表的 excel 2.用 excel 打开,删除 id 列 3.导入 excel 追加新表里 |
3
levelworm 2020 年 9 月 25 日 via Android
呃,可能我理解错了,但是 datagrip 可以直接展开所有字段?然后删除 id 就好了吧。
|
4
hooopo 2020 年 9 月 25 日
select *, null as id
|
5
zhangysh1995 2020 年 9 月 25 日 create table t select a, b, c from oldtbl.
https://dev.mysql.com/doc/refman/8.0/en/create-table-select.html |