Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » UltraLiteJ » UltraLiteJ 参考 » UltraLiteJ API 参考 » ForeignKeySchema 接口

 

addColumnReference 方法

向外键中添加列引用。

语法
ForeignKeySchema ForeignKeySchema.addColumnReference(
  String foreign_column,
  String primary_column
) throws ULjException
参数
  • foreign_column   包含外键的列的名称。此列中的值用于引用主表的 primary_column_name 列中的值。

  • primary_column   被引用的表中列的名称。所有主列(作为一个集合)必须受主表的主键或唯一键约束的限制。

返回值

外键已指派到外列的 ForeignKeySchema。