I am trying to run a very very long sql statement but I get this error
Thread stack overrun: 230352 bytes used of a 262144 byte stack, and 32000 bytes needed. Use 'mysqld --thread_stack=#' to specify a bigger stack.
How can I assign a bigger stack or solve this problem?? I am using wamp, localhost.