Home > Database > Mysql Tutorial > mysql给字段添加default_MySQL

mysql给字段添加default_MySQL

WBOY
Release: 2016-06-01 13:28:24
Original
1111 people have browsed it

bitsCN.com


mysql给字段添加default

 

Sql代码  alter table  t_incoming_records modify  incomingtime datetime  default C  URRENT_TIMESTAMP;  
Copy after login

 

 

注意:修改字段用关键字modify.

 

modify后的column可以省略。

 

bitsCN.com
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template