insert into cust(name,pwd)
select name,pwd from users;
因为cust的id是自增,不需要插入数据。
欢迎追问。
insert cust(name,pwd) select name,pwd from users where name not in(select name from cust)
向cust表插入不存在的用户名和密码
没看清题目
insert into cust select name,pwd from users
select name,pwd from user into cust where user.id=cust.id
自增长标识可更新?