【问题标题】:how to store the date quaterly of the months in laravel?如何在laravel中存储每季度的日期?
【发布时间】:2017-11-30 08:15:53
【问题描述】:

SQLSTATE[23000]:完整性约束违规:1048 列“customer_id”不能为空(SQL:插入invoicesinvoice_nosupplier_idcustomer_idpayment_idissue_date,@ 987654327@, total, gst_type, gst, grandtotal, amt_owed, updated_at, created_at) 值 (XCZ-INV, 1, , 1, , 2017, , , , , -11-29 18:44:19, 2017-11-29 18:44:19))

【问题讨论】:

    标签: laravel-5


    【解决方案1】:

    您不会将任何客户 ID 发送到您的数据库。但是在您的数据库中,您说costumer_id 不能为空。您需要将其更改为“NULL”

    使用这个,它应该可以工作;

    UPDATE invoices SET costumer_id = NULL
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-10-28
      • 1970-01-01
      • 1970-01-01
      • 2019-08-07
      • 2019-06-08
      • 1970-01-01
      • 2017-01-16
      相关资源
      最近更新 更多