提问人:Davide Mazzarotto 提问时间:7/3/2023 最后编辑:Davide Mazzarotto 更新时间:7/4/2023 访问量:47
使用 sqltools 从 C 程序发送查询(在 Visual Studio Code 中)
sending query from a C program using sqltools (in visual studio code)
问:
我正在尝试使用 VS Code 中的 sqltools 扩展从 C 程序发送查询,我已经将其连接到 XAMPP 上的 MySQL 数据库,但我找不到任何直接从 C 程序发送查询的方法,而不是从扩展的 .sql 文件。
例如,这是.sql文件上的代码
INSERT INTO table_name (colum)
VALUES (some_data);
我想把它变成一个像这样的 C 函数
void storing_data_function (table, colum, data){
//puts the data into the colum of the table in my database
}
知道我该怎么办吗? 我不是很擅长这些东西,所以如果我犯了任何菜鸟错误,我强烈道歉。
答: 暂无答案
评论
#include
main()