![]() |
#2
都市虫子2007-06-02 17:07
|
菜鸟的问题:
string secno=rd["cno"].ToString();
string sqlString="select * from teacourse,course,teacher where teacourse.tno=teacher.tno and teacourse.cno=course.cno and teacourse.cno!='"+secno+"'";
其中rd是个DataReader 读出来多行数据。可SQL里面的teacourse.cno!='"+secno+"'只执行最后读出的数据。这