Question

Which generates the most rows in MySQL? • SELECT 1 UNION SELECT 1 UNION SELECT 2;...

Which generates the most rows in MySQL?

• SELECT 1 UNION SELECT 1 UNION SELECT 2;

• SELECT 1 UNION SELECT 1 UNION SELECT 1;

• SELECT 1 UNION ALL SELECT 1 UNION ALL SELECT 1;

• SELECT 1 UNION ALL SELECT 2 UNION SELECT 2;

0 0
Add a comment Improve this question Transcribed image text
Answer #1

SELECT 1 UNION SELECT 1 UNION SELECT 2; ---- returns 2 rows

SELECT 1 UNION SELECT 1 UNION SELECT 1; ---- returns 1 row

SELECT 1 UNION ALL SELECT 1 UNION ALL SELECT 1; ------ returns 3 rows

SELECT 1 UNION ALL SELECT 2 UNION SELECT 2; ---- return 2 rows

Answer : C

SELECT 1 UNION ALL SELECT 1 UNION ALL SELECT 1;

this my sql will returns 3 rows

Add a comment
Know the answer?
Add Answer to:
Which generates the most rows in MySQL? • SELECT 1 UNION SELECT 1 UNION SELECT 2;...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT