我有这个命令:
INSERT INTO table2 (username,profile) SELECT DISTINCT username,profile
FROM table1 WHERE profile='$profile' and username <> '$sender'
我的问题是我想要这个:INSERT INTO table2 (username,profile,type)
类型将是相同的字符串,比如“字符串”
重要提示:我只想username
与众不同。profile
并且type
可以相同。此外,profile
将始终是相同的值。
我怎样才能做到这一点?
非常感谢,问候