May 2005
Intermediate to advanced
352 pages
14h 39m
English
SHOW DATABASES
SHOW DATABASES [LIKE 'pattern']This
statement displays a list of databases for the server. Using the
LIKE clause, a naming pattern may be given. For
example, suppose that a server has a separate database for each
customer of the organization and that the pattern for the names of
the databases is cust_number, where the number
is the customer account number. You could enter the following SQL
statement to obtain a list of databases based on this pattern:
SHOW DATABASES LIKE 'cust_%';
Read now
Unlock full access