0

show database , show tables

what's the difference between show database and show tables?

2nd Apr 2019, 7:50 AM
israa ahmed
israa ahmed - avatar
5 Antworten
+ 6
A database is a collection of tables. SHOW TABLES would show tables within a database. SHOW DATABASES would show all databases on an SQL server.
2nd Apr 2019, 8:08 AM
Hatsy Rei
Hatsy Rei - avatar
+ 3
If you're talking about MySQL, you can do according to the link below, use the 'use' command to connect to a specific database, like use myDatabase; show tables; https://alvinalexander.com/blog/post/mysql/list-tables-in-mysql-database
2nd Apr 2019, 8:17 AM
Hatsy Rei
Hatsy Rei - avatar
0
so I have to specify what database I want to show its table ?
2nd Apr 2019, 8:13 AM
israa ahmed
israa ahmed - avatar
0
okay I get it ... thanks
2nd Apr 2019, 8:20 AM
israa ahmed
israa ahmed - avatar
0
N
18th Dec 2019, 8:38 PM
Sheri Sherifova
Sheri Sherifova - avatar