Professional Documents
Culture Documents
Some Notes pt2
Some Notes pt2
table?'
THIS IS THE ONLY DEMO FOR SET THE PRIMARY KEY TO ANY ONE COLUMN..
this work is always done in the end of querying all the columns..
above is the syntax and also the example of declaration of primary key with given
name.
here don't use the quotes. the quotes are here to highlight the main tasks.
'constraint' is a keyword and which field we want as the primary key field, we have
to write it
inside the the primary key's parantheses (i.e. '()')..
now how to delete the primary key functionality from the given field??
the primary key is a constraint and we have given the name 'id_pk' to this
constraint primary key...
therefore we are deleting the constraint named id_pk ...
now how to assign the primary key to any field after creating the table..