You can create and alter the primary key in Interactive SQL using the CREATE TABLE and ALTER TABLE statements. These statements let you set many table attributes, including column constraints and checks.
Columns in the primary key cannot contain NULL values. You must specify NOT NULL on columns in the primary key.
Connect to the database as a user with DBA authority.
Execute an ALTER TABLE statement for the table on which you want to configure the primary key.
Connect to the database as a user with DBA authority.
Execute an ALTER TABLE statement to drop the existing primary key.
Execute an ALTER TABLE statement to add a primary key.
Connect to the database as a user with DBA authority.
Execute an ALTER TABLE statement using the DELETE PRIMARY KEY clause.
Discuss this page in DocCommentXchange.
|
Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |