Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
此语句用于更改数据库选项的值。
SET OPTION option-name=option-value
option-name: identifier
option-value: string, identifier, or number
只能使用此语句设置数据库选项,并且创建数据库后不能修改属性。这些规则的例外是 ml_remote_id。
您不能指定一个选项是否持久。选项在 UltraLite 中的实施方式决定其是持久选项还是临时选项。持久选项存储在 sysuldata 表中。仅在数据库停止运行之前才能使用临时选项。
唯一可以取消设置的数据库选项是 ml_remote_id。例如:
SET OPTION ml_remote_id=;
结果是 ID 被设置为 NULL。
以下语句将 global_database_id 选项设置为 100:
SET OPTION global_database_id=100;