mysql中不允许用括号的?
有两个表:
t1 (id1,id2)
t2 (id2,time)
1.实验语句:
select *
from t1
where t1.id2 in
(
select id2 from t2 where time like '%31%'
)
提示括号的语句附近有语法错误
2.再测试select id2 from t2 where time like '%31%'
成功运行
3.测试(select id2 from t2 where time like '%31%')
错误,报告跟1.差不多
虽然觉得这个想法很可笑,不过我还是想问:
难道是mysql不支持这样使用括号?