mysql问题,关于left join和子查询的 哦,我的SQL错了,改成这样的select * from table1 where t1_c1 in (select t1_c1 from table2 where t2_c=5) and t1_c2 in (select t1_c1 from table3 where t3_c=5); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 还是自己搜索到了就是left join两次,呵呵,居然能left join两次,刚知道~~最近都在补MYSQL~~我找到的解决方法在这里http://cclinux2.stut.edu.tw/~ericfang/discus/detail.php?titleid=22 似乎普通join就可以。left join是当左表有,右表没有的时候也选择 不能用left,用普通的就行了select * from table1 t1,table2 t2, table3 t3where t1.t1_c1 = t2.t2_c and t1.t1_c2=t3.t3_c and t2.t2_c=5 and t3.t3_c=5; echo与document.write 问题 php 无法读取 mssql 中文字段 正则表达取值问题 请教转义字符 \ 的问题。 如何获取 一个动态页面的所有数据啊? 有谁知道这个URL代表什么意思? 对php版的faq分类的想法 PHP数组操作问题 如何PHP作为程序的服务端 mysql 查询,指定记录 如何知道如phpBB的论坛系统是否会和自己的站点冲突? NOW()的问题!!
就是left join两次,呵呵,居然能left join两次,刚知道~~
最近都在补MYSQL~~我找到的解决方法在这里
http://cclinux2.stut.edu.tw/~ericfang/discus/detail.php?titleid=22
where t1.t1_c1 = t2.t2_c and t1.t1_c2=t3.t3_c and t2.t2_c=5 and t3.t3_c=5;