select语句碰到了问题
shpyw 2004-09-23 12:10:17 我做一个人事系统,可以用编号,姓名等对数据库进行查询,在用编号进行查询时,select * from students where state=true and numbers= & val(txtnumber.text)是可以的,但是我用姓名查找时,总是不行。select * from students where state=true and names= & txtname.text。我总检查不出错在哪里,你们帮我看一下,如何以文本为条件查找数据啊。