Search
 
SCRIPT & CODE EXAMPLE
 

SQL

mysql list databases

SHOW DATABASES;
Comment

mysql cli list databases

mysql -e 'show databases;' 
Comment

view databases in mysql

mysql> SHOW DATABASES;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| pets               |
| sys                |
+--------------------+
5 rows in set (0.00 sec)
Comment

how to show current database in mysql

CopySELECT database();
Comment

PREVIOUS NEXT
Code Example
Sql :: mysql CURRENT_TIMESTAMP() 
Sql :: how to get yesterday date in mysql 
Sql :: wilayah indonesia sql 
Sql :: database url postgres 
Sql :: get all tables postgres 
Sql :: sql server find table name 
Sql :: oracle string length 
Sql :: tsql copy table 
Sql :: postgres alter user password 
Sql :: pl sql escape & 
Sql :: sql server kill all connections 
Sql :: his is incompatible with sql_mode=only_full_group_by 
Sql :: tsql merge example 
Sql :: mysql server does not start mac 
Sql :: sql concate two columns first and last 
Sql :: sql query to find duplicates in column 
Sql :: mysql show processlist full query 
Sql :: create table if not exist in sqlite 
Sql :: mysql list users on ubuntu 
Sql :: postgres restart id 
Sql :: sql server select top 2 of each group 
Sql :: oracle sleep 1 second 
Sql :: show databases mysql docker 
Sql :: oracle set sequence value to max(id) 
Sql :: postgresql format date dd/mm/yyyy 
Sql :: set statiscis on in sql server 
Sql :: oracle sql assign unique number to each grouping 
Sql :: mysql bidirectional composite primary key 
Sql :: check constraint to check if date greater than todays date 
Sql :: psql human readable 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =