Bug #48381 | "show tables not like" isnt valid | ||
---|---|---|---|
Submitted: | 28 Oct 2009 15:44 | Modified: | 28 Oct 2009 18:00 |
Reporter: | Jan Klopper | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Parser | Severity: | S4 (Feature request) |
Version: | 5.0.51a-24+lenny1 | OS: | Linux (Debian 5.0) |
Assigned to: | CPU Architecture: | Any |
[28 Oct 2009 15:44]
Jan Klopper
[28 Oct 2009 16:05]
Valeriy Kravchuk
Syntax you want is NOT presented in the manual, http://dev.mysql.com/doc/refman/5.0/en/show-tables.html. So, this is definitely NOT a bug. It sounds like a reasonable feature request, but why add anything else to SHOW if one can just use SELECT ... FROM INFORMATION_SCHEMA.TABLES WHERE ..., like this: mysql> select table_name from information_schema.tables -> where table_name NOT LIKE 't%';
[28 Oct 2009 18:00]
Jan Klopper
Correct, this aint a bug. But why support like trough a separate codepath if apparently there's an other more flexible way to select tables anyway. Supporting the whole condition system shouldn't be to hard if the underlying code is the same.
[28 Oct 2009 18:15]
Valeriy Kravchuk
Some historical notes: SHOW TABLES appeared first, long time ago, with LIKE only. Then, in 5.0, INFORMATION_SCHEMA was added, with full WHERE support for its tables. SHOW was slightly extended and is still supported for backward compatibility, but there is no much reason to implement new clauses/conditions for SHOW when we support full-featured SELECT and INFORMATION_SCHEMA already. To summarize, I do NOT expect any further extensions to SHOW statements in 5.x. I do expect new tables in INFORMATION_SCHEMA and its further enhancements.