我现在有一个表 X 里面有 三个属性 a b c
我想通过 查询表里的c属性得到 b ,再用得到的 b 属性去查 a。
一般的SQL不是这样写吗? select a from x where b=(select b from X where a=?)
请问用ibatis 在配置文件里 如何配置
我现在有一个表 X 里面有 三个属性 a b c
我想通过 查询表里的c属性得到 b ,再用得到的 b 属性去查 a。
一般的SQL不是这样写吗? select a from x where b=(select b from X where a=?)
请问用ibatis 在配置文件里 如何配置
收起
[quote]select a from x where b=(select b from X where c=#c#) [/quote]
就是这样。
不过这句话跟
[quote]select a from X where c = #c#[/quote]
有什么区别
报告相同问题?