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.