我们可以使用SELECT * from table_name;查询从MySQL表中获取所有记录。示例如下,从“Employee”表中获取所有记录 -
mysql> Select * from Employee;
+------+--------+
| Id | Name |
+------+--------+
| 100 | Ram |
| 200 | Gaurav |
| 300 | Mohan |
+------+--------+
3 rows in set (0.00 sec)