【发布时间】:2017-07-05 15:33:40
【问题描述】:
谁能帮我写一下
Select * from students where studentid in
(select studentXID from rel where parentXID = 123)
请帮帮我
提前致谢。
【问题讨论】:
-
var q = db.table.Where(x => db.rel.Any(x2 => x2.parentXID == 123 && x.studentid == x2.studentXID))
标签: sql linq asp.net-mvc-5