Re: [sqlite] How do I add primary key on existing table?

2008-01-20 Thread Mohd Radzi Ibrahim
On 21-Jan-2008, at 3:12 PM, Dan wrote: On Jan 21, 2008, at 1:24 PM, Mohd Radzi Ibrahim wrote: Hi, I was trying to add a primary key to existing table but could not. "alter table custsales add constraint pk_custsales primary key (id, type)" Is this supported? Is there a different syntax

Re: [sqlite] How do I add primary key on existing table?

2008-01-20 Thread Dan
On Jan 21, 2008, at 1:24 PM, Mohd Radzi Ibrahim wrote: Hi, I was trying to add a primary key to existing table but could not. "alter table custsales add constraint pk_custsales primary key (id, type)" Is this supported? Is there a different syntax to do this? Using ALTER TABLE to add a

[sqlite] How do I add primary key on existing table?

2008-01-20 Thread Mohd Radzi Ibrahim
Hi, I was trying to add a primary key to existing table but could not. "alter table custsales add constraint pk_custsales primary key (id, type)" Is this supported? Is there a different syntax to do this? best regards, Radzi.