Home > Database > Mysql Tutorial > mysql中如何使用变量向插入数据

mysql中如何使用变量向插入数据

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 09:34:40
Original
1565 people have browsed it

mysql数据sql

String sql="INSERT INTO staff(name,AGE)"+"VALUES('na',2)";
这样写的话只是插入字面值,可我想插入的是一个变量里面所拥有的值,求大神

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