dbTalk Databases Forums  

ALTER TABLE problem

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss ALTER TABLE problem in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mike Marston
 
Posts: n/a

Default ALTER TABLE problem - 08-17-2009 , 01:36 PM






The following ALTER TABLE statement in ISQL genterates a syntax error
(syntax error near UNIQUE). What am I doing wrong?

ALTER TABLE dba.po_line MODIFY record_id UNIQUE


SQLA 8.0.3

TIA
Mike

Reply With Quote
  #2  
Old   
Kory Hodgson (Sybase iAnywhere)
 
Posts: n/a

Default Re: ALTER TABLE problem - 08-17-2009 , 01:58 PM






I think it should be:

ALTER TABLE dba.po_line ADD UNIQUE (record_id)

*Untested*

Mike Marston wrote:
Quote:
The following ALTER TABLE statement in ISQL genterates a syntax error
(syntax error near UNIQUE). What am I doing wrong?

ALTER TABLE dba.po_line MODIFY record_id UNIQUE


SQLA 8.0.3

TIA
Mike


Reply With Quote
  #3  
Old   
Mike Marston
 
Posts: n/a

Default Re: ALTER TABLE problem - 08-17-2009 , 02:52 PM



Kory,
That did it. Thanks!

"Kory Hodgson (Sybase iAnywhere)" <khodgson (AT) A_SPAM_FREE_sybase (DOT) com> wrote in
message news:4a89a873$1 (AT) forums-1-dub (DOT) ..
Quote:
I think it should be:

ALTER TABLE dba.po_line ADD UNIQUE (record_id)

*Untested*

Mike Marston wrote:
The following ALTER TABLE statement in ISQL genterates a syntax error
(syntax error near UNIQUE). What am I doing wrong?

ALTER TABLE dba.po_line MODIFY record_id UNIQUE


SQLA 8.0.3

TIA
Mike

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.