INSERT INTO `crm_customer` (`customerid`, `firstname`, `lastname`, `address`,
`telephoneno`, `companyname`, `fax`, `comments`, `countryid`, `statename`,
`cityname`, `emailaddress`, `zipcode`, `dateofbirth`, `unsubscribe`)
VALUES ('0', 'jhghjgfk', 'kghjkj', 'hjkghjgh', '8776785', 'hjghjkgyjk',
'457665', 'jghjgfhj', '0', 'ghjgfjgf', 'gjgfhj', 'ghjgfhjgfj',
'764574576', '2017-03-13', '')
I'm getting error as `#1062 - Duplicate entry 0' for key 'PRIMARY'

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:
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
nullvalue:And, if you don't have auto increment add it: