[英]Why I obtain this error when I try to create this funcion (that use point data type) on a MariaDB database?
[英]MariaDB throws an error when I try to use FOR UPDATE NOWAIT
當我嘗試在我的 select 查詢中使用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
有人能幫助我嗎?
MariaDB 10.3.0 中添加了WAIT
關鍵字。
在此之前,控制鎖等待時間的等待是通過設置變量lock_wait_timeout
或innodb_lock_wait_timeout
來實現的。 將適當的變量設置為0
等效於NOWAIT
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.