# tidb

# 改造oracle方法

# decode改为case when

181994810241149.png

# xmlagg(xmlparse)改造

432375310259575.png

540325310247442.png

# full join改造

通过left join、right join、union(或者union all)

# cast函数转换

# chr(10)

# 自身缺陷

# 不支持create table … select

报错【is not implemented yet(HY000)(1105)】

  • 解决方案
create table t2 like t1;
insert into t2 select * from t1;
1
2

# hibernate中的saveOrUpdate问题

如果数据库中不存在,则使用saveOrUpdate会报错:Row was updated or deleted by anothoe transaction……

这是一个伪【新增或更新】的方法

281131717241147.png

# 不支持on条件中使用子查询

2024-11-04_182734.jpg

# 不可嵌套聚合

203822411241155.png

557522214259581.png