Using subquery in a Check statement in Oracle

后端 未结 5 2026
清歌不尽
清歌不尽 2020-12-11 00:26

So I was trying to work this out but it seems that the last line (the check) doesn\'t allow sub queries in it. Any way to make this work Oracle?

CREATE TABLE         


        
5条回答
  •  一个人的身影
    2020-12-11 00:46

    You will probably need to create triggers and use RAISE_APPLICATION_ERROR if it's outside the allowed range.

提交回复
热议问题