SQL语句有错误的吧
你是否使用了形如
select
(select b from table2 --这儿只能够返回一条记录,返回多条记录会报错。
where ...)
from table1你可以改为:select max(b) from table2
你是否使用了形如
select
(select b from table2 --这儿只能够返回一条记录,返回多条记录会报错。
where ...)
from table1你可以改为:select max(b) from table2
还是先看看你的sql 语句再说!
select * from table1 where field1=(select field1 from table2 where..)
后面的SELECT语句查出有多条记录