Some databases are not allowed BLOB,TEXT GEOMETRY perhaps JSON Field settings default .
Solution 1
Yes BLOB,TEXT GEOMETRY perhaps JSON Fields do not set default values
Solution 2
change sql_mode
sql_mode show variables like '%sql_mode%';hold STRICT_TRANS_TABLES The removed string is re assigned to sql_mode
set global sql_mode='xxx'; # Fill in the quotation marks with the modified sql_mode character string Reference resources :BLOB,TEXT GEOMETRY or JSON column 'xxx' can't have a default value query Problem solving
![[R language data science]: cross validation and looking back](/img/a8/84a5685ebcb12d3cf8e32e1fbac053.png)








