多对多的查询,三表查询,求mysql语句 本帖最后由 setoy 于 2015-02-06 15:11:52 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select a.* from article as a left join art_tags at on at.aid=a.aid where at.tid=2 at.tid=2 ? 这个没法事先得知的啊。用户输入的是汉字“技术” select * from article where aid in(select aid from art_tags where tid in(select tid from tags where tname='技术')); select a.* from article a left join art_tags b on a.aid=b.aid left join tags c on c.tid=b.tid where b.tname='技术' 谢谢!原来where也可以这么写 问一个Xajax的问题高手来看!(在线等) php页面循环hidden标签后,怎样取到hidden的值 求一个目录问题 关于建表 关于下拉列表的问题 请问如何将用户填入的表单信息,发送到指定邮箱!100分 请问 我写了个计数器 但是一刷新页就加一怎么能让一个用户只加一次 WHILE问题 请问如何在用户传上图片之前,能知道此图片的长,宽呢 如何在PHP里面使用管道和队列 不同页面,php如何js传值? android post 含中文的json给php,php接收后直接打印出来中文就是乱码,android端输出的json中文正常
at.tid=2 ? 这个没法事先得知的啊。用户输入的是汉字“技术”
select * from article where aid in(select aid from art_tags where tid in(select tid from tags where tname='技术'));
left join art_tags b on a.aid=b.aid
left join tags c on c.tid=b.tid where b.tname='技术'
原来where也可以这么写