|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
RE: 4.1 and unions
From: Mike Johnson (mike
smarterliving.com)
Date: Thu Aug 04 2005 - 12:30:36 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: Scott Noyes [mailto:snoyes
gmail.com]
> UNION is not broken; the syntax in the given comment is
> incorrect. You can do
> SELECT * FROM table UNION SELECT * FROM table
> or
> (SELECT * FROM table) UNION (SELECT * FROM table)
> but not
> SELECT * FROM table UNION (SELECT * FROM table)
Oh, interesting. My next question was going to be if the second syntax
is correct (all subqueries enclosed in parens), but looks like it's
good.
Thanks, Scott.
--
Mike Johnson Smarter Living, Inc.
Web Developer www.smartertravel.com
mike
smarterliving.com (617) 886-5539
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]