zhireshengquery1.sql.Add ('where stu_1.学号=stu_2.学号 and stu_1.学号=edit20.text');
我不知道是不是学号这个字段
不过肯定需要写字段的。另外,感觉你的stu_2表没用。

解决方案 »

  1.   

    zhireshengquery1.sql.Add ('where stu_1.=stu_2. and stu_1.=edit20.text');你对应的字段是什么?怎么没写
      

  2.   

    zhireshengquery1.sql.Add ('where stu_1.=stu_2. and stu_1.=edit20.text');字段名没有写,而且 edit20.text 也不是这么用的。
    '...and stu_1.xxxx = ''' + Edit20.Text + '''');
      

  3.   

    前后加空格
    sql.Add (' where .... ');
              ^          ^
      

  4.   

    ?? 
    ------------------------------
    前后加空格
      sql.Add (' where .... ');
    ------------------------------前面不用加的