我正在使用 MyBatis 3 创建一个请求(见下文)但是,我得到: ORA-00942: table or view does not exist where SYNONYM_A is a public Synonym for a table in another database...
我知道这个例子并没有真正的帮助,但真正的问题是,“Batis 中的同义词有特殊的语法吗?” 有没有人这样做,或者失败了,并且可以告诉我,所以我不会花费很多精力,如果它在 Batis 中无效?
@Select("select * from SYNONYM_A where some_det_key in (SELECT DATA_KEY FROM SOME_PARENT_TABLE WHERE PARENT_KEY = 1234 AND (ATTACH_PARENT_FLG = 1 or ATTACH_PARENT_FLG is null) AND DATA_SRC = 'LV_SOME_DET') ORDER BY pair