select * from dbo.student where stu_id='"&UID&"'  这句代码如果想再加一个或者关系的查询该怎么补充,谢谢了!

解决方案 »

  1.   

    select * from dbo.student t join grade g on t.sno = g.sno where t.stu_id='"&UID&"'类似!
      

  2.   

    select * from dbo.student where stu_id='"&UID&"' or stu_id='"&UID2&"'如红色部分。
      

  3.   

    select * from dbo.student where stu_id='"&UID&"'or stu_id='"&UID&"'
      

  4.   

    那如果改了之后,CursorType = 0,LockType =1,这两个属性还要不要改?
      

  5.   

    select * from dbo.student where stu_id='"&UID&"' or stu_id='"&UID2&"'
      

  6.   

    这个sql都会有吧,百度吧~~