Closed zhoujin7 closed 1 year ago
或者有什么办法保证两个字段联合的唯一性 除了联合主键
CREATE TABLE IF NOT EXISTS index_test (f1 int, f2 int, f3 varchar); CREATE UNIQUE INDEX IF NOT EXISTS index_test_uidx1 ON index_test (f2, f3);
https://github.com/lealone/Lealone/blob/7d98207cf040deac07a6409e753721017d015d28/lealone-db/src/main/resources/org/lealone/common/resources/help.csv 这个是帮助文件
或者有什么办法保证两个字段联合的唯一性 除了联合主键