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.
我正在创建一个复合主节点。我想在创建表时将属性组合作为主键。我正在研究 Oracle 10g 数据库和 SQL 作为查询语言。
create table foo ( col_one integer not null, col_two integer not null, some_other_column varchar(100) not null, constraint pk_foo primary key (col_one, col_two) );
手册中的更多详细信息和示例: