Very long query
#1

Hi all,

Currently I'm having some issues with a really long MySQL query.

At first I tried to put each statement on it's own line, like this:

Код:
format(query, sizeof(query), "UPDATE `example` SET
example  = 'foo',
example2 = '',
...

And so on
This resulted in a "error 037: invalid string (possibly non-terminated string)".

Then I tried to just put the whole query on 1 line, which caused it to be a very long line, with result "error 075: input line too long (after substitutions)".

How should I solve this problem?

Thomas
Reply


Messages In This Thread
Very long query - by Thomas. - 14.08.2010, 11:25
Re: Very long query - by Vince - 14.08.2010, 11:33
Re: Very long query - by Calgon - 14.08.2010, 11:36
Re: Very long query - by Thomas. - 14.08.2010, 16:18
Re: Very long query - by Thomas. - 15.08.2010, 12:18
Re: Very long query - by Thomas. - 16.08.2010, 23:59
Re: Very long query - by Thomas. - 17.08.2010, 08:47
Re: Very long query - by Vince - 17.08.2010, 11:10
Re: Very long query - by Thomas. - 17.08.2010, 18:12
Re: Very long query - by Thomas. - 17.08.2010, 18:30

Forum Jump:


Users browsing this thread: 1 Guest(s)