Mega Code Archive

 
Categories / Oracle PLSQL Tutorial / Table
 

Create table with primary key

SQL>  create table myTable (   2    word  varchar2(50),   3    position   int,   4    doc_id int,   5    primary key(word,position,doc_id)   6  ); Table created. SQL> SQL> drop table myTable; Table dropped.