alter table table1 add order_date datetime null;

 

mysql> select * from table1;
+----------+------------+-----+------------+
| name_new | transactor | pid | order_date |
+----------+------------+-----+------------+
| 1hahha   | 1xiaohong  |   1 | NULL       |
| 2hahha   | 2xiaohong  |   2 | NULL       |
| 3hahha   | 3xiaohong  |   3 | NULL       |
| 4hahha   | 4xiaohong  |   4 | NULL       |
| 3hahha   | bob        |   5 | NULL       |
| 3hahha   | lee        |   6 | NULL       |
+----------+------------+-----+------------+
6 rows in set (0.00 sec)

 

 

相关文章:

  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
  • 2021-08-10
  • 2021-10-21
  • 2022-12-23
  • 2022-12-23
  • 2021-04-24
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-05
  • 2022-12-23
相关资源
相似解决方案