MYSQL 的二次查询怎么写? 本帖最后由 tianya2297360 于 2011-10-20 14:29:27 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 什么意思?几个表?为啥要查询这么多次。select title,code from test where code = '456';这个就可以获得所有的code为456 的title了。select * from test;这个可以获得所有的title和code select title,code from test where title = (select title from test where code = '456'); select title,code from test where title = (select title from test where code = '456');正解 是正解么?如果有多个code = 456 的,那么用=还对么?即使用子查询也要用.select title,code from test where title in (select title from test where code = '456'); 关于静态调用类 中的编写问题 急:php访FLSAH链 请看我的代码 谁有短信对接系统?有钱收的哦! PHP生成xml字符串 用ajax接收的问题 SQL问题求教,当使用insert的时候,如果相应字段已经存在内容时那么会出现什么? 用户每天登陆网站经验会增加1,一天内重复登陆无效 小女子 求救!!!谁能帮我写个用socket上传图片的函数??? PHP怎么让它不使用缓冲区 数组遍历问题 href链接网络文件夹 $cryptkey = $keya.md5($keya.$keyc);什么意思 怎么备份数据库!!!
这个就可以获得所有的code为456 的title了。select * from test;
这个可以获得所有的title和code
正解
如果有多个code = 456 的,那么用=还对么?即使用子查询也要用.select title,code from test where title in (select title from test where code = '456');