SQL1=select pid from table1 where id=1;
$result['pid'];
SQL2=select name from table1 where Id=$result['pid'];
这两行SQL合并成一条. 也就是 pid 跟id 是有关联的.答对给分.哈哈哈...
...全文
12710打赏收藏
ZT_King来考试了.数据库问题.
1 表 id pid name SQL1=select pid from table1 where id=1; $result['pid']; SQL2=select name from table1 where Id=$result['pid']; 这两行SQL合并成一条. 也就是 pid 跟id 是有关联的.答对给分.哈哈哈...