Home > Database > Mysql Tutorial > jsp中对mysql赋值问题

jsp中对mysql赋值问题

WBOY
Release: 2016-06-06 09:43:38
Original
996 people have browsed it

mysqljsp语法

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template