How to resolve this error Field 'STATE_REGION' doesn't have a default value in MySQl 5.6 -


i had error following

field 'state_region' - field name doesn't have default value in mysql 5.6.

i fixed issue changing sql_mode = ''; in previous version of mysql

but failed in mysql 5.6

how fix issue in mysql 5.6. please appreciated.

got solution problem
add ignore after insert

insert ignore tblname(....

"insert ignore" vs "insert ... on duplicate key update"

thanks:)


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -