Skip to content

Tag: mysql-error-1064

I got mysqli error 1064 but i don’t know why

I want to post this data from android client and i tested it with postman and status code was 200. But i have a mysqli error and it’s: Error: ((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 ‘WHERE id=’ at line 1)

Conditional NOT NULL case SQL

I am trying to calculate a field and I want it to behave differently depending on if one of the columns happens to be null. I am using MySQL Is this the right syntax? Answer You need to have when reply.replies IS NOT NULL NULL is a special case in SQL and cannot be compared with = or <> operators.