MySQL Syntax error
#8

Quote:
Originally Posted by BroZeus
Посмотреть сообщение
i am not good at mysql but just opened a gamemode of mysql and in that there is ' ' around every specifier in query why is that
and it works pretty good to with it
They're not necessary, but you've to add those apostrophe outside the strings no matter what.

Quote:
Originally Posted by Misiur
Посмотреть сообщение
@OP:
I'm not sure if mysql_format supports this, but use %.2f for floats. Why? Normally they take up ~8 chars (0.000000 instead 0.00). And you shouldn't need more precision than 3. Also I still encourage using %e instead of %s. Oh, and simply print your query after mysql_format, then check it out in server log.
He found the issue already.

Quote:
Originally Posted by Jacksta21
Посмотреть сообщение
EDIT: That was the issue, thanks for that! My idiocity probably wouldn't have found that alone...
Reply


Messages In This Thread
MySQL Syntax error - by Jacksta21 - 31.05.2014, 14:24
Re: MySQL Syntax error - by Misiur - 31.05.2014, 14:37
Re: MySQL Syntax error - by Jacksta21 - 31.05.2014, 14:44
Re: MySQL Syntax error - by BroZeus - 31.05.2014, 15:08
Re: MySQL Syntax error - by Patrick - 31.05.2014, 15:17
Re: MySQL Syntax error - by BroZeus - 31.05.2014, 15:21
Re: MySQL Syntax error - by Misiur - 31.05.2014, 15:23
Re: MySQL Syntax error - by iZN - 31.05.2014, 15:25
Re: MySQL Syntax error - by Vince - 31.05.2014, 17:14

Forum Jump:


Users browsing this thread: 2 Guest(s)