#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')`username``email``password`' at line 1 code example

Example 1: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'json DEFAULT NULL COMMENT 'storing the data of before sending to Gateway', `r' at line 14

MariaDB does not natively implement the 'JSON' data type but it uses it as an 
alias for 'LONGTEXT' for compatibility reasons

Example 2: mysql #1064 error

UPDATE test
SET  field  = IF(something == 1{CONDITION}, 1 {NEW VALUE}, field)
WHERE `id` = 5

Tags:

Sql Example