views:

39

answers:

2

hi,

i am using autocomplete with oracle Db,how to create unique keyword for the table.

KEYWORD VARCHAR2(100) COUNT NUMBER(18)

how can i make as unique

can plz tell the query

+2  A: 
ALTER TABLE mytable add CONSTRAINT keyword_unique UNIQUE (keyword);
Michael Shimmins
A: 
create table "unique keyword" ("KEYWORD" VARCHAR2(100), "COUNT" NUMBER(18));

I think that will do the trick ;-)

Robert Merkwürdigeliebe