JavaDB|Derby 数据类型如下

主要介绍date、time、timestamp三个数据类型,文末有手册data type链接。

data typeDescriptionExample
DATAyyyy-mm-dd,mm/dd/yyyy,dd.mm.yyyyVALUES DATE(‘1994-02-23’)
TIMEhh:mm[:ss],hh.mm[.ss],hh[:mm] {AM | PM}VALUES TIME(‘15:09:02’)
TIMESTAMPyyyy-mm-dd hh:mm:ss[.nnnnnnnnn],yyyy-mm-dd-hh.mm.ss[.nnnnnnnnn]VALUES TIMESTAMP(‘1962-09-23 03:23:34.234’)
BIGINTBIGINT provides 8 bytes of storage for integer values.
BLOBA BLOB (binary large object) is a varying-length binary string that can be up to 2,147,483,647 characters long. Like other binary types, BLOB strings are not associated with a code page. In addition, BLOB strings do not hold character data.
BOOLEANBOOLEAN provides 1 byte of storage for logical values.
CHARCHAR provides for fixed-length storage of strings.
CHAR FOR BIT DATAA CHAR FOR BIT DATA type allows you to store byte strings of a specified length. It is useful for unstructured data where character strings are not appropriate.
DECIMALDECIMAL provides an exact numeric in which the precision and scale can be arbitrarily sized.
DOUBLEThe DOUBLE data type is a synonym for the DOUBLE PRECISION data type.

参考:
[1] derby10.15 手册 - data type

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值