Select statement - another way (#22582)
parent
1197f22d8e
commit
4f1677a9c6
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue