0

当我尝试NOWAIT在我的选择查询中使用时,出现以下错误。

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'NOWAIT' at line 1

我的 Mariadb 版本是10.2.29-MariaDB-1:10.2.29+maria~bionic

有人能帮助我吗?

4

1 回答 1

0

WAITMariaDB 10.3.0 中添加了该关键字。

在此之前,控制锁等待时间的等待是通过设置变量lock_wait_timeoutinnodb_lock_wait_timeout。将适当的变量设置0为等效于NOWAIT

于 2020-06-06T23:52:22.297 回答