SQLite NVARCHAR 和 NVARCHAR2 的区别 [英] The Difference between SQLite NVARCHAR and NVARCHAR2

查看:36
本文介绍了SQLite NVARCHAR 和 NVARCHAR2 的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道 SQLite NVARCHARNVARCHAR2 列有什么区别.

I don't know what is the difference between SQLite NVARCHAR and NVARCHAR2 column.

我知道 NVARCHAR 是一个纯 Unicode 文本列,但是 NVARCHAR2 呢?

I know that NVARCHAR is a Unicode-only text column, but what about NVARCHAR2?

推荐答案

没有区别.

SQLite 不使用这种严格的数据类型,它有存储类".

SQLite does not operate with strict data types like that, it has "storage classes".

如果您查看官方文档,您会发现此规则,这是过去常用的五个规则之一根据您指定的数据类型确定将哪个存储类分配给列:

If you check the official documentation you'll find this rule, one of five used to determine which storage class to assign to a column from the data type you specify:

  1. 如果列的声明类型包含任何字符串CHAR"、CLOB"或TEXT",则该列具有 TEXT 亲和性.请注意,类型 VARCHAR 包含字符串CHAR",因此被分配了 TEXT 亲和性.

总共有 5 条规则,但第 2 条规则涵盖了 NVARCHARNVARCHAR2,并且两者都会将存储类 TEXT 分配给列.

There are 5 rules in total but rule 2 covers NVARCHAR and NVARCHAR2 and both will assign the storage class TEXT to the column.

这篇关于SQLite NVARCHAR 和 NVARCHAR2 的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆