狂风系列问题:怎么会事呀,很简单,但搞不定?在线等?
关于使用数据库的:
以下语句可以:
strsql="update table1 set u_check=u_check+1 where u_text='太糟了,快改行吧'"
comdtmp=new oledbcommand(strsql,myconnection)
comdtmp.executenonquery()
而改成:
dim strtemp as string="太糟了,快改行吧"
strsql="update table1 set u_check=u_check+1 where u_text="&strtemp
comdtmp=new oledbcommand(strsql,myconnection)
comdtmp.executenonquery()
就不行,为什么