Search
 
SCRIPT & CODE EXAMPLE
 

SQL

mysql list databases

SHOW DATABASES;
Comment

mysql show 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 :: set default today mysql 
Sql :: mysql return 0 if null 
Sql :: sql get missing id 
Sql :: Add 2 hours to current time in MySQL 
Sql :: sql server get users 
Sql :: disable foreign key constraint mysql 
Sql :: Mysql Case sum 
Sql :: oracle columns table 
Sql :: how to change potgress password 
Sql :: postgres add not null to existing column 
Sql :: mysql first day of year 
Sql :: this is incompatible with sql_mode=only_full_group_by 
Sql :: Found option without preceding group in config file: /etc/mysql/mariadb.conf.d/50-server.cnf at line: 1 
Sql :: how to duplicate table in mysql 
Sql :: oracle add column 
Sql :: postgresql print sessions using the database 
Sql :: postgres stop server mac 
Sql :: sql between date range 
Sql :: postgresql concatenate multiple rows in group by 
Sql :: postgresql reset auto increment 
Sql :: alter table add foreign key mysql 
Sql :: oracle wait 
Sql :: pip install mysqlclient error 
Sql :: oracle reset sequence 
Sql :: postgresql create table with index 
Sql :: psql restore from tar 
Sql :: Odoo Service is not coming up with postgresql read replica (slave) 
Sql :: query any digits record 
Sql :: load mysql dumb 
Sql :: oracle activate job 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =