我不能使用 mysql 数据库连接同时使用插入和选择.C++
I cannot use insert and select at the same time using mysql database connection .C++
我想知道如何使用 mysql 数据库连接将列从一个表复制到另一个表?
我的代码是这样的:
string insert_query = "insert into customer_info (Customer Name, Price) Select name,price from medicine_tb where id = '"+storeid[j]+"'";
const char* qu = insert_query.c_str();
qstate = mysql_query(conn, qu);
但它不起作用!
请使用
insert into customer_info (`Customer Name`, Price)
相关文章:
- 使用C++库在Android项目中修改gradle中的cmake参数,用于插入指令的测试
- 如何使用默认参数等选择模板专业化
- 有关插入适配器的错误。[错误]请求从 'back_insert_iterator<vector<>>' 类型转换为非标量类型
- 预处理器:插入结构名称中的前一个行号
- 如何(从固定列表中)选择一个数字序列,该序列将与目标数字相加
- 选择要调用的构造函数
- 我不能使用 mysql 数据库连接同时使用插入和选择.C++
- 操作计数插入气泡选择
- 高频插入 PostgreSQL,插入的数据要到几分钟后才能选择?
- 选择在 Sqlite 数据库中有效,但插入和更新语句不起作用
- 冒泡排序、选择排序和插入排序
- 选择多个插入行的最快捷方式
- 选择什么容器来快速搜索/插入大量数据
- 模板类可以选择将初始值作为模板参数插入
- EM_EXGETSEL与文本选择顺序无关.如何确定一段选定文本中的插入符号位置
- 选择要插入所记录的多个db的容器
- 我应该使用什么数据结构来支持插入、删除和随机选择
- Oracle Pro*C中插入子选择查询导致ORA-01403:没有找到数据
- 从数据库中选择记录并插入到c++映射中
- c++选择排序插入方法和私有变量