注意:

linux服务器中

 
  
  1. insert into `table` (`id`,`title`,`time`) values (NULL,'',now());可以的 

但是在:windows服务器中:

不能提交空字段,必须判断后给赋值:NULL或者0等

 
  
  1. insert into `table` (`id`,`title`,`time`) values (NULL,'',now());失败,不能提交空字段 
  2. 必须: 
  3. insert into `table` (`id`,`title`,`time`) values (NULL,'0',now()); 

 

这里记录下,别忘了