We have already used the SELECT command in MySQL to list the contents of a table. For instance, if a user had already connected to the database "games and wanted to review the scores, the following would list all the contents of that table:
+---------+------+ | Name | Num | +---------+------+ | Phyllis | 987 | | Randy | 1285 | | Don | 919 | | Mark | 0 | | Mary | 567 | | Bob | 23 | | Pete | 456 | | Sally | 333 | +---------+------+ 8 rows in set (0.00 sec)
+---------+------+ | Name | Num | +---------+------+ | Mark | 0 | | Bob | 23 | | Sally | 333 | | Pete | 456 | | Mary | 567 | | Don | 919 | | Phyllis | 987 | | Randy | 1285 | +---------+------+ 8 rows in set (0.00 sec)
+---------+------+ | Name | Num | +---------+------+ | Bob | 23 | | Don | 919 | | Mark | 0 | | Mary | 567 | | Pete | 456 | | Phyllis | 987 | | Randy | 1285 | | Sally | 333 | +---------+------+ 8 rows in set (0.01 sec)
+------+ | Name | +------+ | Mark | | Bob | +------+ 2 rows in set (0.00 sec)
+------+---------+ | Num | Name | +------+---------+ | 1285 | Randy | | 987 | Phyllis | | 919 | Don | +------+---------+ 3 rows in set (0.00 sec)