Why is this not working? I can not even change the primary keys, why do I have a primary key when I add the price field?
string sql = "INSERT INTO items (Name, Href, Price) VALUES (@title, @href, @price1) ON DUPLICATE KEY UPDATE `Price`=VALUES(`Price`);"; 

idfield, it has the right place. In general, the keys themselves do not appear, you should have indicated when adding a field that it is the primary key, so that it would become. And you also need to make a unique index / key on after href (you’d like to do an update based on it. Yes, and I would not recommend the Price double field, money cannot be stored in this type of data, it does not guarantee the complete accuracy of the number Use an appropriately sized decimal - Mike