Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这些表是client、promo和coupons
client
promo
coupons
client可以有多个promo,promo将有几个coupons.coupon_codes,将有coupons.copon_status。
coupons.coupon_codes
coupons.copon_status
现在我想对 a 执行删除,client但我想首先检查 a 上是否没有未使用coupons.coupon_code,promo基于未使用的coupons.copon_status0 和已使用的 1。
coupons.coupon_code
我不知道如何在这里制作 mysql 表,所以我必须写下我的问题。