Home > Database > Mysql Tutorial > mysql-MySQL如何用C++通过函数把变量录入到数据库中

mysql-MySQL如何用C++通过函数把变量录入到数据库中

WBOY
Release: 2016-06-06 09:33:29
Original
1040 people have browsed it

mysqlc++数据库

以下是关键代码

<code> /*        for (int i = 1; i > id; cout > age; cout > score; cout </code>
Copy after login

res = mysql_query(&myCont, "INSERT INTO i (id, name, age, subject, score)VALUES (id, 'name', age, 'subject', score)");
现在问题就是这句怎么改

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