首页上一页 1 下一页尾页 3 条记录 1/1页
sql查询语句 老是说=后面语法错误
发表在C#图书答疑
2010-07-18
是否精华
是
否
版块置顶:
是
否
[font color=#FF0000] 我用第二句是可以的,可第一句,老是说=后面语法错误,但我改了多遍都不行,加" '都试过,是哪里错了呀?请老师指导一下,谢谢。[/font]
// DataSet myds = dbOp.getDataSet("select _user as 用户名称,_pass as 用户密码 from tb_user where _user =+ txb_user.Text.Trim() + ","tb_user");
DataSet myds = dbOp.getDataSet("select _user as 用户名称,_pass as 用户密码 from tb_user where _user like '%" + txb_user.Text.Trim() + "%'", "tb_user");
// DataSet myds = dbOp.getDataSet("select _user as 用户名称,_pass as 用户密码 from tb_user where _user =+ txb_user.Text.Trim() + ","tb_user");
DataSet myds = dbOp.getDataSet("select _user as 用户名称,_pass as 用户密码 from tb_user where _user like '%" + txb_user.Text.Trim() + "%'", "tb_user");