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 参考 » TableSchema 接口

 

createPrimaryIndex 方法

创建表的主索引。

语法
IndexSchema TableSchema.createPrimaryIndex(
  String index_name
) throws ULjException
参数
  • index_name   索引的名称。所指定的名称必须是有效的 SQL 标识符。

注释

每个表必须恰好有一个主索引。主索引中的列不能为空。

返回值

用于使用指定名称创建主索引的 IndexSchema。