草庐IT

overridePrice

全部标签

mysql - 如何在 MySQL 中选择具有匹配字段的行?

我有2个表,一个包含价格覆盖,另一个包含分钟覆盖,每个表针对每个用户和产品。我如何选择它们,以便为每个用户和产品创建记录?Table1:OverridePrices+--------+-----------+---------------+|userID|productID|overridePrice|+--------+-----------+---------------+|4|53|99.99||4|13|99.99||4|55|99.99|+--------+-----------+---------------+Table2:OverrideMinutes+--------+