2016-09-30 75 views

回答

3
create table composite_unique 
(
    id integer, 
    foo integer, 
    bar integer, 
    primary key (foo, bar); 
); 

create table composite_unique 
(
    id integer, 
    foo integer, 
    bar integer, 
    unique (foo, bar) 
); 

欲瞭解更多詳情,請參閱該Derby manual

兩個語句是ANSI SQL據我所知

相關問題