问个问题 mycommand=new oledbcommand( "select * from password where userid= '' " &txtuserid & " '' ",myconnection) 请大家看下这句话有
错误么 myreader=mycommand.executereader 着是
错误的地方 定义的都没有问题的
提示信息是from 语法错啊 conn.
open() Dim
sql = "select * from
logo where name= '' " & Text
Box1.Text & " '' " Dim comm As New Data.OleDb.OleDbCommand(
sql,conn) Dim dr As OleDbDataReader = comm.ExecuteReader() dr.Read() If Text
Box2.Text = dr.GetString(1) Then s = New Sy
stem.Threading.Thread(AddressOf Module1.runF3) s.Start() Me.Close() Else Message
Box.Show( "密码输入
错误,请重新输入! ") Text
Box2.Text = " " End If __________________________________________________________________________ 1.由于某些是关键字,最好使用[],如select * from [password] 2,保证字段类型正确,如整型字段不加 '',如 "select * from [password] Where userid = " + userID 3,替换 '',如Dim
sql = "select * from
logo where name= '' " + Text
Box1.Text.Replace( " '' "," '' '' ") + " '' " __________________________________________________________________________ 我在学习楼上的高手能不能讲的细点呀 虽然不是我提的问题 但我也想听 拜托了 __________________________________________________________________________ 你的那个表名方便的话你
修改下!是关键字啊! __________________________________________________________________________ To:net_
lover(【孟子E章】) 怎么通过
sql语名存储 ''符号? __________________________________________________________________________
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。