1, php遇到json_decode()为null
$object = preg_replace('/[\x00-\x1F\x80-\x9F]/u', '', trim($object));
$writing = json_decode($object,TRUE);
2取消数据库外键约束
SET FOREIGN_KEY_CHECKS=0;
TRUNCATE TABLE goods;
SET FOREIGN_KEY_CHECKS=1;
1, php遇到json_decode()为null
$object = preg_replace('/[\x00-\x1F\x80-\x9F]/u', '', trim($object));
$writing = json_decode($object,TRUE);
2取消数据库外键约束
SET FOREIGN_KEY_CHECKS=0;
TRUNCATE TABLE goods;
SET FOREIGN_KEY_CHECKS=1;