1
我得到了以下SQL:讓第二個表中對象ID是唯一的
create or replace type MEDIUM_TYPE AS OBJECT
(
me_movie REF MOVIE_TYPE,
me_rating varchar2(2),
me_runtime number(3,0),
me_release_year number(4,0),
me_list_price number(3,2),
me_our_price number(3,2),
me_availability varchar2(128),
me_aspect_ratio varchar2(8),
me_encoding number (1,0),
me_subtitle_language SUBTITLE_LANGUAGE_TYPE,
me_number_of_discs number (1,0)
)not final
/
create table DVD of MEDIUM_TYPE
object id system generated
/
我怎樣才能確保me_movie在DVD表是獨一無二的?
而且,我該如何做這樣的事情?
mo_release_year number(4,0) BETWEEN 1900 AND 2100,