sqlstring="select userlevel,experience from chatuser where username='"+Name+"'; 5
Multipleannotationsfoundatthisline:-Stringliteralisnotproperlyclosedbyadouble-quote-S...
Multiple annotations found at this line:
- String literal is not properly closed by a double-
quote
- String literal is not properly closed by a double-
quote
怎么修改 大声帮忙 展开
- String literal is not properly closed by a double-
quote
- String literal is not properly closed by a double-
quote
怎么修改 大声帮忙 展开
展开全部
最后面再加一个"
sqlstring="select userlevel,experience from chatuser where username='"+Name+"';"
sqlstring="select userlevel,experience from chatuser where username='"+Name+"';"
更多追问追答
追问
Multiple annotations found at this line:
- Syntax error, insert ";" to complete
Statement
- Syntax error, insert ";" to complete
Statement
而且 结局应该是 ;不能是 “ 呀!
追答
把最后2个字符;" 换下位置
你的最后一个单引号属于字符串以内的,需要一个双引号作为结束
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询