How can I write a Query to update certain fields where the only thing I want to check is the IDKey, but if it does not find the IDKey, the record does not exist, make an Insert of the record using this same information
what I have:
str="UPDATE Det_Info SET Size=1, Color=1 WHERE KeyProduc='0100';
OR
INSERT INTO Det_Info(KeyProduc,Size,Color) VALUES ('0100',1,1);"
The idea is to do it in a single query, and not wait for the resolution of one query to make another, and the priority is to do the Update. without stored procedures.