錯誤號碼:1364 錯誤資訊:Field 'platId' doesn't have a default value,1364platid

來源:互聯網
上載者:User

錯誤號碼:1364 錯誤資訊:Field 'platId' doesn't have a default value,1364platid
1. 錯誤描述

錯誤號碼:1364錯誤資訊:Field 'platId' doesn't have a default valueinsert into `use`.`t_platform_scale` () values ()
2.錯誤原因

由於在建表時,給platId一個not null限制,而且沒有給預設值,在插入資料時未插入,導致報錯

3.解決辦法

(1)修改platId可以為null
(2)插入資料時一定要插入platId

著作權聲明:本文為博主原創文章,未經博主允許不得轉載。

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.