I have encountered a problem in sybase.
By searching in stackoverflow, I found this link.
But I found that incorrect in sybase, which gave me a syntax error warning. Are there any other ways that can change the primary key in sybase?
We can use sp_dropkey to drop the key and sp_primarykey to add the primary key.
sp_dropkey primary, MyTable
sp_primarykey MyTable, col1, col2,..,col8
1- Use :
sp_helpconstraint S87EntityFolderMap
To get your Primary Key system Generated name
2- Then use alter table to drop it :
alter table S87EntityFolderMap drop constraint name_from_first_step