Home  >  Article  >  Database  >  jsp中对mysql赋值问题

jsp中对mysql赋值问题

WBOY
WBOYOriginal
2016-06-06 09:43:38967browse

mysqljsp语法

rs=sql.executeQuery("select * from user where username='"+username+"'");
这句话是在mysql中查找username的值为jsp中string变量username的值的记录。为啥要加这么多引号还有加号呢 不是很明白啊。求高手解答

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn