【发布时间】:2020-09-24 04:36:29
【问题描述】:
我有两个表产品和条件,其中product_id 是产品的主键,它的外键是条件。
product
product_id name
1 eggs
2 milk
condition
product_id condition_name
1 new
2 bad
1 normal
我需要一个程序,它可以给我所有状况良好的产品的名称。
【问题讨论】:
-
为什么需要存储过程?一个简单的查询就足够了。