I am trying to add some values in a table with a Select procedure for 1 value like this.
INSERT INTO product(productname, productprice, productcategorynumber)
VALUES ('12', '12', (SELECT productcategorynumber
FROM product_category
WHERE productcategoryname = 'DRINKS'));
I Receive the following error:
duplicate key value violates unique constraint
thanx for help
productname = '12'