![]() |
|
首页 │ Apache │ Linux│ Java│ MySQL│ 注册│帮助 | |||
相关问题
我有两个表 table1,table2 ,我想写一个sql语句,把两个表里符合内容的记录全部取出来,应该怎么写?
能这么写吗?
$sql = "select * from table where condition1 or select * from table2";
提问者:php.net 08-13 20:08
答复
![]() |
|
首页 │ Apache │ Linux│ Java│ MySQL│ 注册│帮助 | |||
我有两个表 table1,table2 ,我想写一个sql语句,把两个表里符合内容的记录全部取出来,应该怎么写?
能这么写吗?
$sql = "select * from table where condition1 or select * from table2";