Select statement - another way (#22582)

pull/22685/head^2
adeelnazir13236 2018-11-24 16:10:34 +05:00 committed by nik
parent 1197f22d8e
commit 4f1677a9c6
1 changed files with 27 additions and 0 deletions

View File

@ -32,6 +32,33 @@ from student;
9 rows in set (0.00 sec)
```
## Select All Data in a table
As defined in above section, there is another way of selecting all data without defining names of each and every attribute in query.
This technique is short and very helpfull in querying faster:
```Select query
select *
from student;
```
```text
+-----------+-------------------+------------+
| studentID | FirstName | LastName |
+-----------+-------------------+------------+
| 1 | Monique | Davis |
| 2 | Teri | Gutierrez |
| 3 | Spencer | Pautier |
| 4 | Louis | Ramsey |
| 5 | Alvin | Greene |
| 6 | Sophie | Freeman |
| 7 | Edgar Frank "Ted" | Codd |
| 8 | Donald D. | Chamberlin |
| 9 | Raymond F. | Boyce |
+-----------+-------------------+------------+
9 rows in set (0.00 sec)
```
*As with all of these SQL things there is MUCH MORE to them than what's in this introductory guide.
I hope this at least gives you enough to get started.