【sqlite】SQLite中的数据类型

本文详细介绍了数据库中五种基本值类型的存储方式及应用场景:NULL值、整数型、浮点型、文本型和BLOB。NULL值用于表示缺失的数据;整数型用于存储各种大小的整数;浮点型用于存储实数;文本型用于存储字符串;BLOB用于存储原始二进制数据。
  • NULL
    The value is a NULL value.

  • INTEGER
    The value is a signed integer, stored in 1, 2, 3, 4, 6, or 8 bytes depending on the magnitude of the value.

  • REAL
    The value is a floating point value, stored as an 8-byte IEEE floating point number.

  • TEXT
    The value is a text string, stored using the database encoding (UTF-8, UTF-16BE or UTF-16LE).

  • BLOB
    The value is a blob of data, stored exactly as it was input.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值