Home  >  Article  >  Database  >  mysql创建表,默认系统当前时间

mysql创建表,默认系统当前时间

WBOY
WBOYOriginal
2016-06-06 09:39:182438browse

mysql

CREATE TABLE tmp_webservice_sql_log (
ID INT(10) NOT NULL AUTO_INCREMENT,
SEND_DATA_TIME DATETIME DEFAULT NULL,
SEND_STATE VARCHAR(10) DEFAULT NULL,
INTER_NAME VARCHAR(100) NOT NULL,
CREATE_TIME DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
QUERY_SQL TEXT,
SEND_JSON LONGTEXT,
RETURN_JSON VARCHAR(2000) DEFAULT NULL,
SYS TINYINT(2) DEFAULT NULL,
PRIMARY KEY (ID,INTER_NAME,CREATE_TIME)
) ENGINE=INNODB AUTO_INCREMENT=343 DEFAULT CHARSET=utf8

create_time 字段和 QUERY_SQL字段SEND_JSON字段 报错

Statement:
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