约束和mysql 的差异

oceanbase是不是不支持下面的写法,好像是加约束时候不支持desc和asc
constraint idx_alter_result
unique (start_time desc, extract_task_id asc, instance_id asc)
另外alter table qrtz_blob_triggers
add primary key (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP);
将多个列设置成主键,也没执行成功报错 Not supported feature or function

CREATE TABLE your_table1 ( start_time datetime, extract_task_id int, instance_id int, CONSTRAINT idx_alter_result UNIQUE (start_time , extract_task_id ASC, instance_id ASC) );
Query OK, 0 rows affected (0.044 sec)

ASC应该是可以德。
有desc时再索引里是看不支持德,会报错ERROR 1235 (0A000): desc index not supported

  1. 逆序索引还不支持。
  2. observer 是什么版本?4.x 版本印象中是支持追加主键的。

3.1.4的

追究单列主键可以,但是多列组合的唯一主键好像不行

版本太老了把,建表时定义多列主键有没有问题

哦哦,314 这个版本比较老了。如果已经明确报错 not supported 了,那就是在这个老版本还没支持了。