I was trying to execute an INSERT query which ensures that only 1 row is inserted and avoid duplicate insertions/ here is my SQL string that i used inside my PHP file:
$sql = "INSERT INTO `users`( `user_name`,`email`, `password`, `active`) VALUES (:name, :email, :pass, :active) LIMIT 1";
I got this following error:
Calling BeforeException -> string(211) "SQLSTATE[42000]: Syntax error or access violation: 1064 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 'LIMIT 1' at line 1"
i think MariaDB Insert command do not use LIMIT syntax. please suggest.Thanks