Dropping a primary and forign Key


Every fault made when designing a Database through SQL gets recovered in many cases, but when the field is assigned as primary kay I wonder that Alter Table thetable drop thefield will make your DBMS cry ‘Yoh man that’s a primary key go play with foggs !’ the best practice in such is that the primary key is a filed that have a constraint dropping the constraint wil make you DBMS obey you as a master : ‘ALTER TABLE thetable DROP CONSTRAINT thekey’. In most DBMS this woks fine and about yours, I have doubts, just try and never get tired !


One Comment Add yours

  1. cute twinks says:

    it is making me think twice about it

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s