`

依条件查询本身记录和第一层子记录

阅读更多
第一种方法:
eg:
int a[] = new int[]{1,2};
select * from tepd.functions where functionsid in (a) or topfuncid in (a)

第二种:
int b =6;
select * from tepd.functions a where a.functionsid=b union select * from tepd.functions b  where b.topfuncid=b
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics