Skip to content
Advertisement

How to use Like statement?

I meet an error like this:

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 ‘TANAH’%’ AND a.id_bencana=b.id_bencana AND a.id_daerah=c.id_kelurahan AND c.id_k’ at line 1

Advertisement

Answer

Learn to write queries cleanly!

  • Use proper JOIN syntax.
  • Use meaningful table aliases.

Your problem is misplaced quotes:

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement