简体   繁体   中英

Insert 0000-00-00 00:00:00 to DateTime in Mysql Database

Is there a way to insert "0000-00-00 00:00:00" to send from PHP to store it in MySql database ?

Should I change the database field's default value as "0000-00-00 00:00:00" ?

Dont pass any argument to your DateTime column.

 insert into table_name (column_name) values('');

For update

 update table_name set column_name='' where other_column_name=value

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM