mysql语法难题

bushido 2003-09-11 03:29:32
在sql server中是这样的
select BBSid,Fatherid,Menuid,BBSTopic from bbs where BBSid in (select Fatherid from bbs where Emails like '%raikexu@mtctec.com%')

改写成mysql应该是怎么样的
我在我的电脑里没有成功执行
...全文
47 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
bushido 2003-09-11
  • 打赏
  • 举报
回复
有道理,先变成临时表,然后再选择,
给分

BTW,
我还想说一句,上论坛的兄弟们好象结贴率不高,
得到自己问题的答案后,不结贴的有多少??????????????????
xuzuning 2003-09-11
  • 打赏
  • 举报
回复
sreate temporary table temp select Fatherid from bbs where Emails like '%raikexu@mtctec.com%';
select BBSid,bbs.Fatherid,Menuid,BBSTopic from bbs,temp where BBSid = temp.Fatherid;
bushido 2003-09-11
  • 打赏
  • 举报
回复
UP,UP,UP
bushido 2003-09-11
  • 打赏
  • 举报
回复
老大,看清楚点再回贴啊
xshatan 2003-09-11
  • 打赏
  • 举报
回复
select BBSid,Fatherid,Menuid,BBSTopic from bbs where Emails like '%raikexu@mtctec.com%'

21,886

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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