If you have an auto increment column you don't need the value for key primary .. assuming you key primary is customerid you should use:
INSERT INTO `crm_customer` ( `firstname`, `lastname`, `address`,
`telephoneno`, `companyname`, `fax`, `comments`, `countryid`, `statename`,
`cityname`, `emailaddress`, `zipcode`, `dateofbirth`, `unsubscribe`)
VALUES ( 'jhghjgfk', 'kghjkj', 'hjkghjgh', '8776785', 'hjghjkgyjk',
'457665', 'jghjgfhj', '0', 'ghjgfjgf', 'gjgfhj', 'ghjgfhjgfj',
'764574576', '2017-03-13', '')
Simply avoid the column name and value in the corresponding part of the insert
.
Or, you can use it in column name list but with null
value:
INSERT INTO `crm_customer` (`customerid`, `firstname`, `lastname`, `address`,
`telephoneno`, `companyname`, `fax`, `comments`, `countryid`, `statename`,
`cityname`, `emailaddress`, `zipcode`, `dateofbirth`, `unsubscribe`)
VALUES ( null, 'jhghjgfk', 'kghjkj', 'hjkghjgh', '8776785', 'hjghjkgyjk',
'457665', 'jghjgfhj', '0', 'ghjgfjgf', 'gjgfhj', 'ghjgfhjgfj',
'764574576', '2017-03-13', '')
And, if you don't have auto increment add it:
ALTER TABLE crm_customer MODIFY COLUMN customerid INT auto_increment