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.
productId、shopId、from 、until を持つ SpecialOffer を呼び出すテーブルがあり、最後の 2 つは datetime です。
私はこのようなことができることを知っています
CREATE UNIQUE INDEX UniqueIndex2 ON SpecialOffer(codP, codS)
codP は codS の範囲内で一意である必要がありますが、「from」と「until」の間でのみこの一意性を達成するにはどうすればよいですか?