UltraLite can maintain primary key uniqueness using any of the techniques supported by MobiLink. See Maintaining unique primary keys.
One of these methods is to use a GLOBAL AUTOINCREMENT column.GLOBAL AUTOINCREMENT is similar to AUTOINCREMENT, except that the domain is partitioned. UltraLite supplies column values only from the partition assigned to the database's global database ID. Each UltraLite database is assigned a unique integer global database ID.
A second method is to use a UUID primary key column. A UUID requires more data, but needs no distinct database identifier .
Using GLOBAL AUTOINCREMENT in UltraLite
Determining the most recently assigned GLOBAL AUTOINCREMENT value
Overriding partition sizes for autoincremented columns
Discuss this page in DocCommentXchange.
|
Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |