<分区>
我正在尝试插入一条记录,其中一个字段为 NULL,但返回了一个错误:Column 'paid' cannot be null
注意:在数据库表中,paid 列是整数类型。
代码
$sql="INSERT INTO `fees_receipt_temp_table`(`id`, `voucher_no`, `std_id`, `full_name`, `payable_fee`,paid) VALUES ('','$voucher_no','$std_id','$name','$payable',NULL)";