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

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

WBOY
WBOYOriginal
2016-06-06 09:33:291029browse

mysqlc++数据库

以下是关键代码

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

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

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