Test Table Users
Now you need to create a test table, on which we will practice in the next lessons. Let this table contain a list of employees: their names, ages, and salaries:
id | name | age | salary |
---|---|---|---|
1 | user1 | 23 | 400 |
2 | user2 | 25 | 500 |
3 | user3 | 23 | 500 |
4 | user4 | 30 | 900 |
5 | user5 | 27 | 500 |
6 | user6 | 28 | 900 |
Create a database mydb
, and in it
a table users
with the content specified above.
Make a dump of this table so that in the future you can easily restore it.