Bug #1272 Missed comma in the manual (derived tables)

Submitted: 13 Sep 2003 12:25 Modified: 13 Sep 2003 12:42
Reporter: [ name withheld ] Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server: Documentation Severity:S3 (Non-critical)
Version:4.1 OS:
Assigned to: CPU Architecture:Any

[13 Sep 2003 12:25] [ name withheld ]
Description:
http://www.mysql.com/doc/en/Nutshell_4.1_features.html
and http://www.mysql.com/doc/en/News-4.1.x.html.

I am not sure, but i think you mistyped the following:

"SELECT t1.a FROM t1, (SELECT * FROM t2) t3 WHERE t1.a=t3.a;"

Forgot about the comma? Look:

"SELECT t1.a FROM t1, (SELECT * FROM t2), t3 WHERE t1.a=t3.a;"

How to repeat:
Go to http://www.mysql.com/doc/en/Nutshell_4.1_features.html
and http://www.mysql.com/doc/en/News-4.1.x.html and thing...

I am not sure, but i think you mistyped the following:

"SELECT t1.a FROM t1, (SELECT * FROM t2) t3 WHERE t1.a=t3.a;"

Forgot about the comma? Look:

"SELECT t1.a FROM t1, (SELECT * FROM t2), t3 WHERE t1.a=t3.a;"

Suggested fix:
Add the comma
[13 Sep 2003 12:42] Sergei Golubchik
no, comma is not missing. t3 is an alias for derived table.
It should be read as

SELECT t1.a FROM t1, (SELECT * FROM t2) AS t3 WHERE t1.a=t3.a;

but "AS" is optional, and omitted in this example

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.049 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.