SHOW TABLES;
SHOW COLUMNS FROM tablename;
DESC tablename;
MariaDB [vlrinst]> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| phpmyadmin |
| student |
| test |
| vlrinst |
+--------------------+
7 rows in set (0.00 sec)
MariaDB [vlrinst]> show tables;
+-------------------+
| Tables_in_vlrinst |
+-------------------+
| faculty |
| persons |
+-------------------+
2 rows in set (0.00 sec)
MariaDB [vlrinst]> desc faculty;
+---------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------+-------------+------+-----+---------+-------+
| fid | int(11) | YES | | NULL | |
| fname | varchar(10) | YES | | NULL | |
| fmobile | int(12) | YES | | NULL | |
| floc | varchar(20) | YES | | NULL | |
| fma | char(1) | YES | | NULL | |
+---------+-------------+------+-----+---------+-------+
5 rows in set (0.04 sec)
MariaDB [vlrinst]> desc persons;
+-----------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------+--------------+------+-----+---------+-------+
| PersonID | int(11) | YES | | NULL | |
| LastName | varchar(255) | YES | | NULL | |
| FirstName | varchar(255) | YES | | NULL | |
| Address | varchar(255) | YES | | NULL | |
| City | varchar(255) | YES | | NULL | |
+-----------+--------------+------+-----+---------+-------+
5 rows in set (0.03 sec)
MariaDB [vlrinst]>
No comments:
Post a Comment
Note: only a member of this blog may post a comment.