Error 1149: You have an error in your SQL syntax
Error Code
SQLSTATE
Error
Description
Possible Causes and Solutions
Delimiters
SELECT 1
SELECT 2;
ERROR 1064 (42000): 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 'SELECT 2' at line 2SELECT 1;
SELECT 2;Delimiters in Stored Programs
CREATE FUNCTION FortyTwo() RETURNS TINYINT DETERMINISTIC
BEGIN
DECLARE x TINYINT;
SET x = 42;
RETURN x;
END;Reserved Words
Syntax Doesn't Match SQL_MODE
Oracle Mode
PreviousError 1148: The used command is not allowed with this MariaDB versionNextError 1150: Delayed insert thread couldn't get requested lock for table
Last updated
Was this helpful?

