The error is because of the sql mode which can be strict mode as per latest MYSQL 5.7 documentation.
To disable strict mode and other strict features, run this query:
SET GLOBAL sql_mode="";
For more information read this.
Hope it helps.
More Related Contents:
- i have an error which i dont understand. can you help me? [closed]
- If two columns are 1 then make new column
- Left Outer Join doesn’t return all rows from my left table?
- Get a list of dates between two dates
- How to populate a table with a range of dates?
- MySQL Query GROUP BY day / month / year
- Error in MySQL when setting default value for DATE or DATETIME
- MySQL : isn’t in GROUP BY
- MySQL: Can’t create table (errno: 150)
- Difference between two dates in MySQL
- Restore table structure from frm and ibd files
- Subqueries with EXISTS vs IN – MySQL
- Get the latest date from grouped MySQL data
- Error Dropping Database (Can’t rmdir ‘.test\’, errno: 17)
- How to select the most recent set of dated records from a mysql table
- Composite key as foreign key (sql)
- Compare only day and month with date field in mysql
- Insert/ Update random date in MySQL
- SQL date format convert? [dd.mm.yy to YYYY-MM-DD]
- mySQL query to search all tables within a database for a string?
- How do I extract Month and Year in a MySQL date and compare them?
- Getting first day of the week in MySql using Week No
- Can’t import database through phpmyadmin file size too large
- Update MySQL with if condition
- “Unknown column in ‘field list'”, but column does exist
- How do I combine the results of two queries with ordering?
- How to get back Lost phpMyAdmin Password, XAMPP
- UTF8 problem with MySQL 5
- ERROR 1115 (42000): Unknown character set: ‘utf8mb4’
- MYSQL Select One Random record from each Category