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

SQL Anywhere 11.0.1 (日本語) » Ultra Light J » Ultra Light J リファレンス » Ultra Light J API リファレンス » TableSchema インタフェース

 

createUniqueKey メソッド

新しいユニーク・キーを作成します。

構文
IndexSchema TableSchema.createUniqueKey(
  String index_name
) throws ULjException
パラメータ
  • index_name   キーの名前。指定する名前は有効な SQL 識別子である必要があります。

備考

ユニーク・キーは、テーブル内の各ローをユニークに識別する 1 つ以上のカラムを指定する制約です。1 つのテーブルに複数の一意性制約が存在することがあります。

戻り値

指定された名前で作成されたユニーク・キーに割り当てられている IndexSchema。