level 1
sql = "select * from studentinfo where 班级 in(select 班级 from ClassInfo where 专业班级 in(select 专业班级 from Teacherinfo where 教师编号= '" & Trim(teacherid) & "')) order by 学号 asc"
2007年06月13日 02点06分
1
level 1
看你什么类型数据库了,例如这在sybase是不行的
2007年06月13日 02点06分
2
level 1
SQL的,刚刚试了,可以运行,呵呵,我之前以为只能用一个IN
2007年06月13日 02点06分
3