
上QQ阅读APP看书,第一时间看更新
Strings
Cassandra has two types that store string data:
- The text type stores the UTF-8 encoded strings. It's also aliased as the varchar type; you can use these interchangeably
- The ascii type stores strings of ASCII characters (bytes 0-127)
Neither of the previous string types has a limit on the length of strings that can be stored. In CQL, string literals are surrounded by single quotes, 'like this'.