sql - 创建 sqlite 索引时 COLLATE 关键字的作用是什么?

标签 sql sqlite indexing collate

根据sqlite3 documentation ,

The COLLATE clause following each column name defines a collating sequence used for text entries in that column. The default collating sequence is the collating sequence defined for that column in the CREATE TABLE statement. Or if no collating sequence is otherwise defined, the built-in BINARY collating sequence is used.

整理序列有什么作用,什么是 BINARY 整理序列?

最佳答案

是sql引擎内部排序数据的方式。 Binary Collat​​ion 按照它的建议进行,它进行二进制比较。通常它是最快的排序规则,尽管我从未对其进行量化,因为它会检查位模式,这意味着它区分大小写和重音。

关于sql - 创建 sqlite 索引时 COLLATE 关键字的作用是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/799840/

相关文章:

sql - 保持日期间隔不重叠并与 Oracle +11g 中的触发器一致

sql - PostgreSQL 9.3 : Pivot table query

android - 我无法创建查询以从不同的表中获取所需的数据

python - 在 SQLite 数据库中存储 XML/HTML 文件——可能吗?

pandas - 获取多索引列值

Swift 访问由 `NSIndexPath` 指定的嵌套数组元素

sql - 更改 Access 自动编号值

sql - 从表中复制 "sliding window"数据的好策略?

iphone - 我的数据库数据在哪里(核心数据,iOS)

java - 如何访问 Java MongoDB 中的 Collection 元素