sql语句语法错误,求指教

神的理想 2013-12-05 04:49:30
insert into ut_mail (playerid, sendname, title, content, items, sendtime, readit) values('.$playerid.', "sysmail", "test", "test", "test", "test", "test") select distinct playerid from ut_player
...全文
103 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
神的理想 2013-12-05
  • 打赏
  • 举报
回复
引用 6 楼 WWWWA 的回复:
提示什么?语法?
刚测试对了,这样没错! insert into ut_mail (playerid, sendname, title) select distinct playerid ,"sysmail", "test" from ut_player
WWWWA 2013-12-05
  • 打赏
  • 举报
回复
提示什么?语法?
神的理想 2013-12-05
  • 打赏
  • 举报
回复
引用 4 楼 WWWWA 的回复:
insert into ut_mail (playerid, sendname, title) select distinct playerid ,"sysmail", "test" from ut_player
ut_player 表里只有 playerid 测试还是不行
WWWWA 2013-12-05
  • 打赏
  • 举报
回复
insert into ut_mail (playerid, sendname, title) select distinct playerid ,"sysmail", "test" from ut_player
神的理想 2013-12-05
  • 打赏
  • 举报
回复
引用 2 楼 WWWWA 的回复:
insert into ut_mail (playerid, sendname, title) values('".$playerid."', "sysmail", "test") select distinct playerid from ut_player 你要达到什么目的?SQL语句语法错误
就是查询到多少个playerid就插入多少条记录到ut_mail表中
WWWWA 2013-12-05
  • 打赏
  • 举报
回复
insert into ut_mail (playerid, sendname, title) values('".$playerid."', "sysmail", "test") select distinct playerid from ut_player 你要达到什么目的?SQL语句语法错误
神的理想 2013-12-05
  • 打赏
  • 举报
回复
缩短了
insert into ut_mail (playerid, sendname, title) values('".$playerid."', "sysmail", "test") select distinct playerid from ut_player

56,677

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧