mysql中表字段注意事项
2017-11-15 本文已影响0人
ClearWang
![](https://img.haomeiwen.com/i7126163/bd022662230b300f.png)
如图所示,其中create_data和expires_data字段均使用了on update current_timestamp操作,表示更新表时这两个字段会自动设置为当前时间(如果这两个字段没有被更新的情况下),设置的时间格式为: yyyy-MM-dd hh:mm:ss 例如:2017-11-15 09:41:59
如图所示,其中create_data和expires_data字段均使用了on update current_timestamp操作,表示更新表时这两个字段会自动设置为当前时间(如果这两个字段没有被更新的情况下),设置的时间格式为: yyyy-MM-dd hh:mm:ss 例如:2017-11-15 09:41:59