给我几张mysql的数据表
时间: 2023-10-27 18:47:34 浏览: 78
常用的三个mysql表
1. 用户表:
| id | username | password | email |
| --- | -------- | -------- | ---------------|
| 1 | alice | 123456 | alice@example.com|
| 2 | bob | abc123 | bob@example.com |
| 3 | charlie | xyz789 | charlie@example.com |
2. 商品表:
| id | name | price | description |
| --- | -------- | -------- | --------------------------------- |
| 1 | iPhone | 8999 | A high-end smartphone from Apple. |
| 2 | Galaxy | 7999 | A high-end smartphone from Samsung. |
| 3 | Surface | 9999 | A high-end laptop from Microsoft. |
3. 订单表:
| id | user_id | product_id | quantity | total_price | order_date |
| --- | ------- | ---------- | -------- | ----------- | ---------------- |
| 1 | 1 | 1 | 1 | 8999 | 2021-01-01 10:00 |
| 2 | 2 | 2 | 2 | 15998 | 2021-01-02 12:00 |
| 3 | 3 | 1 | 1 | 8999 | 2021-01-03 14:00 |
阅读全文