关于cratedb的一些记录

reference -> https://crate.io/docs/crate/reference/en/latest/general/dql/fulltext.html

--create table t5 (name string, index ft_name using fulltext(name) with (analyzer = 'my_pinyin'));

select * from t5 where match(ft_name, 'm') and match(ft_name, 'n') order by _score asc;

upsert
--insert into t03 (id,name) values (1, 'jack') on conflict (id) do update set name = 'role' ;

upsert 老版本
insert into t02 (id,name,name2) values (1, 'ff', 'ff2') on duplicate key update name = 'fuck', name2 = 'fuck2';

--https://crate.io/docs/crate/reference/en/latest/general/ddl/fulltext-indices.html
--https://crate.io/docs/crate/reference/en/latest/general/ddl/analyzers.html
--https://crate.io/docs/clients/python/en/latest/sqlalchemy.html#object

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • # Awesome Python [![Awesome](https://cdn.rawgit.com/sindr...
    emily_007阅读 2,228评论 0 3
  • # Python 资源大全中文版 我想很多程序员应该记得 GitHub 上有一个 Awesome - XXX 系列...
    小迈克阅读 3,063评论 1 3
  • mean to add the formatted="false" attribute?.[ 46% 47325/...
    ProZoom阅读 2,731评论 0 3
  • 随着时间的流失,你终于明白了。一个人也可以熬过,那些曾经的苦。 一、 开始过一个人的生活的时候,你才明白什么叫“熬...
    南山之木阅读 352评论 0 0
  • 山花谢枫红, 把酒祝清风。 天地浩然气, 海山斜日红。
    郭大牛阅读 246评论 0 6