MySql之(存储过程函数报错)Result consisted of more than one row
摘要:mysql 的输入语句重复,只能输入唯一一条数据,检查自己的函数和存储过程是否有重复数据, 解决方法: 使用group by 进行去重。
阅读全文
posted @
2020-07-22 19:24
爱吃萝卜青菜
阅读(2175)
推荐(0)
mysql之Percona-XtraDB-Cluster prohibits without an explicit primary key with pxc_strict_mode = ENFORCING or MASTER报错
摘要:今天执行删除语句的时候报错 Percona-XtraDB-Cluster prohibits without an explicit primary key with pxc_strict_mode = ENFORCING or MASTER 原因是主键,添加主键就好了
阅读全文
posted @
2020-04-28 11:47
爱吃萝卜青菜
阅读(862)
推荐(0)
MySQL之You can't specify target table for update in FROM clause解决办法
摘要:做删除的时候遇到了这个问题 You can't specify target table for update in FROM clause 意思是:不能查询表中的字段并更新这些字段在同一张表中。 解决:在包一层就行了 错误sql: DELETE FROM orders WHERE id IN (S
阅读全文
posted @
2020-04-26 17:24
爱吃萝卜青菜
阅读(5464)
推荐(0)