Use the following procedure to use foreign keys to create relationships between tables.
In the left pane of Sybase Central, double-click Tables.
In the left pane, click the SalesOrderItems table to select it.
In the right pane, click the Constraints tab.
Click File » New » Foreign Key.
In the To Which Table Do You Want This Foreign Key To Refer list, click the Products table.
In the What Do You Want To Name The New Foreign Key field, type ProductIDkey.
Click Next and for Do You Want This Foreign Key To Reference The Primary Key Or A Unique Constraint click Primary Key.
In the Foreign Column list, click SalesOrderItemsID.
Click Finish.
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |