tags:

views:

50

answers:

2

Apparently i need two queries to get the data i need. I cant give out to much information but is it possible to write 2 queries in one statement? (I have a feeling it is possible).

Using mysql 4

+5  A: 
SELECT * FROM tooVague;
SELECT * FROM googleIt;
Stefan Kendall
lol :). I Thought left join may have to do with it but this is simple :) +1 and answered.
An employee
And this is one statement? ;-)
IronGoofy
If you're using the Connector/J JDBC driver, you have to give it permission to run multiple queries in a single request.http://dev.mysql.com/doc/refman/5.0/en/connector-j-reference-configuration-properties.htmlScroll down to Security > allowMultiQueries.
iKnowKungFoo
Link for MySQL 4:http://dev.mysql.com/doc/refman/4.1/en/connector-j-reference-configuration-properties.html
iKnowKungFoo
A: 

If the question is "Can I execute two commands in one query?" then the answer is "no."

iddqd
Any reason this was downvoted? If you're going to downvote, at least tell me how I'm wrong.
iddqd
I didnt do it but i assume the answer is yes and no is wrong?
An employee