Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Don Bryant asked how to drop a primary key. Jonathan Leffler answered ALTER TABLE x DROP CONSTRAINT y if it was named. Daniel Morgan then offered ALTER TABLE ... DROP PRIMARY KEY for an unknown name, but admitted it was Oracle SQL posted by mistake.
Auto-generated by Claude from the posts below — may be imperfect; read the full thread.
Don Bryant wrote:
> Can describe how to drop a primary key from a table?
If you gave it a name, then:
ALTER TABLE x DROP CONSTRAINT y;
--
Jonathan Leffler #include <disclaimer.h>
Email: jleffler@earthlink.net, jleffler@us.ibm.com
Guardian of DBD::Informix v2003.04 -- http://dbi.perl.org/
↪ replying to Jonathan Leffler
Daniel Morgan — — source: Usenet: comp.databases.informix
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.