This works:
INSERT INTO people (`name`, `job`) values ('Bob', 'sales')
but this fails:
INSERT INTO people (`name`, `Sold`) values ('Bob', '56')
Giving the error:
Unknown column 'Sold' in 'field list'
All fields are of type varchar. Can’t figure this out!
This error is referring to the table column name
Soldin the tablepeople.Your two examples are meaningless because you didn’t successfully insert a value into the column
Soldin the first example. Neither did you successfully insert a number into a VARCHAR column in the first example.This has nothing to do with a type mismatch, the error says this column is unknown (doesn’t exist).