I am getting this error in mybb SQL table:
SQL Error: 1364 - Field 'buys' doesn't have a default value Query: INSERT INTO mybb_bank_post ('pid','cost') VALUES ('1680','10000')
How can I resolve this?
I am getting this error in mybb SQL table:
SQL Error: 1364 - Field 'buys' doesn't have a default value Query: INSERT INTO mybb_bank_post ('pid','cost') VALUES ('1680','10000')
How can I resolve this?
Copyright © 2021 Jogjafile Inc.
This suggests that
buysis declaredNOT NULL. So, you need to assign it a value when you insert into the table:Or, declare the table so
buysis notNOT NULL-- that isNULLvalues are allowed. Or, provide a default value in the table definition.Note: Do not use single quotes for column names or for numeric constants. Only use single quotes for strings and date constants.