基本上,当搜索产品价格的php脚本运行时,它会在mysql表的末尾插入一个新的行(如果是新的一天)或更新行(如果那个日期的产品价格已经被记录)。所以我使用了"insert on duplicate update“查询(表在product_id x update_date上有一个惟一的索引)。update_date, price) UPDATE price=$pmin";
它工作得很好,但我
=property['values_format'], items=batch) execute_commit(query)'VALUES function' is deprecated and will be removed in a future release.AS alias) and replace VALUES(col) in the ON