FUNCTION databasename.CONCAT does not exist

Got this error in MySQL on my dev box, but not online, despite running MySQL 5+ on both machines.

Turns out in some versions of MySQL you cannot have a space between a function name and it’s parameters, e.g.

CONCAT (MyField, ‘ some text’) <-BAD
CONCAT(MyField, ‘ some text’) <-GOOD

So good practice is to never put a space in ;)

  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Technorati
  • Twitter
Posted Wednesday, December 9th, 2009 under Computers, Development.

One comment so far

  1. Jorge Mercado says:

    Tanks

Leave a Reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes