Comandos para visualizar las tablas
Comando: Show
Sintaxis:
Show Tables;
mysql> show tables
-> ;
+----------------------+
| Tables_in_biblioteca |
+----------------------+
| libro |
+----------------------+
1 row in set (0.03 sec)
Comando Para visualizar la estructura de una tabla
Comando: describe
Sintaxis: describe nombretabla;
mysql> describe libro;
+----------+----------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+----------+----------+------+-----+---------+-------+
| code_lib | char(18) | NO | PRI | NULL | |
| nom_lib | char(10) | NO | | NULL | |
| Val_lib | float | NO | | NULL | |
| fec_edi | date | NO | | NULL | |
+----------+----------+------+-----+---------+-------+
4 rows in set (0.05 sec)