Returns a list of all databases : Show « Command MySQL « SQL / MySQL






Returns a list of all databases

        

SHOW DATABASES 

   
    
    
    
    
    
    
    
  








Related examples in the same category

1.Determine which functions the running version of MySQL supports with the SQL command SHOW VARIABLES.
2.Determine the computer's time zone with SHOW_VARIABLES
3.The SHOW INDEX statement
4.SHOW CREATE TABLE
5.SHOW TABLES with LIKE clause
6.Ask the server to report the number of connections it's received and its uptime
7.Using SHOW and DESCRIBE to Review Table Structures
8.Returns information about all indexes of the table
9.Show columns command
10.Using the SHOW CREATE TABLE statement
11.Using the SHOW VARIABLES Statement to Retrieve Server System Variable Settings
12.Returning now to the syntax, you can see that a basic SHOW STATUS statement is very straightforward
13.SHOW STATUS statement returns all those status variables whose name contains the string select:
14.Have the root user show the change.
15.Using Show Create Table command to check table
16.SHOW COLUMNS
17.To find out the current type of a table, use the SHOW TABLE STATUS statement or SHOW CREATE TABLE
18.SHOW CREATE TABLE tableName\G
19.Using Database-Related SHOW Statements
20.SHOW DATABASE statement
21.Using Table-Related SHOW Statements
22.This SHOW statement returns more than these columns
23.Add a LIKE clause at the end of a SHOW statement to display information only for column names that match a given pattern
24.To determine the tables a particular database contains, use SHOW TABLES:
25.SHOW DATABASES and SHOW TABLES can each take a LIKE 'pattern' clause
26.Using the SUM function, make a report that shows the total sales numbers in each quarter.
27.Show warnings
28.Show status for a procedure
29.Show create procedure
30.Specify a value in the LIKE clause that includes the string query
31.Listing Existing Tables in a Database with SHOW TABLES
32.Testing Whether a Database Exists
33.Listing Database or Table Names
34.The _ character means "match any character" in pattern strings
35.Determining Existing SPs
36.Monitoring the MySQL Server
37.get the thread identity
38.Returns a list of all tables in dbname
39.Testing Whether a Table Exists
40.Getting Table Structure Information