错误代码:1192。无法执行给定的命令,因为您有活动的锁定表或活动事务
Error Code: 1192. Can't execute the given command because you have active locked tables or an active transaction
我正在尝试在 mysql workbench
上截断我的 table
truncate pbx_api.confbridges;
但是它说
Error Code: 1192. Can't execute the given command because you have active locked tables or an active transaction
表示table被独占锁定,正在交易中。在回滚或提交之前,您无法截断。
例如解锁 tables,请参阅@Cleber Griff 的回答。
我使用 SQL 查询解决了这个问题:UNLOCK TABLES;
我正在尝试在 mysql workbench
上截断我的 tabletruncate pbx_api.confbridges;
但是它说
Error Code: 1192. Can't execute the given command because you have active locked tables or an active transaction
表示table被独占锁定,正在交易中。在回滚或提交之前,您无法截断。
例如解锁 tables,请参阅@Cleber Griff 的回答。
我使用 SQL 查询解决了这个问题:UNLOCK TABLES;