GBase 8c V3.0.0数据类型——密态等值函数

这篇博客详细介绍了byteawithoutorderwithequalcol数据类型的转换和比较操作,包括从cstring到byteawithoutorderwithequalcol的转化、内部类型转cstring、转bytea以及比较函数。文章中还提到了可能出现的错误情况,如cek未找到导致的转换失败问题,这对于理解数据库中此类数据类型的操作至关重要。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  1. byteawithoutorderwithequalcolin(cstring)

描述:将输入转码转化成内部byteawithoutorderwithequalcol形式。

参数类型:cstring

返回值类型:byteawithoutorderwithequalcol

  1. byteawithoutorderwithequalcolout(byteawithoutorderwithequalcol)

描述:将内部byteawithoutorderwithequalcol类型的数据转码转化为cstring类型。

参数类型:byteawithoutorderwithequalcol

返回值类型:cstring

  1. byteawithoutorderwithequalcolsend(byteawithoutorderwithequalcol)

描述:将byteawithoutorderwithequalcol类型的数据转码转化为bytea类型。

参数类型:byteawithoutorderwithequalcol

返回值类型:bytea

  1. byteawithoutorderwithequalcolrecv(internal)

描述:将byteawithoutorderwithequalcol类型的数据转码转化为byteawithoutorderwithequalcol类型。

参数类型:internal

返回值类型:byteawithoutorderwithequalcol

  1. byteawithoutorderwithequalcoltypmodin(_cstring)

描述:将byteawithoutorderwithequalcol类型的数据转码转化为byteawithoutorderwithequalcol类型。

参数类型:_cstring

返回值类型:int4

  1. byteawithoutorderwithequalcoltypmodout(int4)

描述:将int4类型的数据转码转化为cstring类型。

参数类型:int4

返回值类型:cstring

  1. byteawithoutordercolin(cstring)

描述:将输入转码转化成内部byteawithoutordercolin形式。

参数类型:cstring

返回值类型:byteawithoutordercol

  1. byteawithoutordercolout(byteawithoutordercol)

描述:将内部byteawithoutordercol类型的数据转码转化为cstring类型。

参数类型:byteawithoutordercol

返回值类型:cstring

  1. byteawithoutordercolsend(byteawithoutordercol)

描述:将byteawithoutordercol类型的数据转码转化为bytea类型。

参数类型:byteawithoutordercol

返回值类型:bytea

  1. byteawithoutordercolrecv(internal)

描述:将byteawithoutordercol类型的数据转码转化为byteawithoutordercol类型。

参数类型:internal

返回值类型:byteawithoutordercol

  1. byteawithoutorderwithequalcolcmp(byteawithoutorderwithequalcol, byteawithoutorderwithequalcol)

描述:比较两个byteawithoutorderwithequalcol类型的数据大小,若第一个参数小于第二个参数,返回-1,若等于,返回0,若大于,则返回1。

参数类型:byteawithoutorderwithequalcol, byteawithoutorderwithequalcol

返回值类型:int4

  1. byteawithoutorderwithequalcolcmpbytear(byteawithoutorderwithequalcol, bytea)

描述:比较byteawithoutorderwithequalcol和bytea数据大小,若第一个参数小于第二个参数,返回-1,若等于,返回0,若大于,则返回1。

参数类型:byteawithoutorderwithequalcol, bytea

返回值类型:int4

  1. byteawithoutorderwithequalcolcmpbyteal(bytea, byteawithoutorderwithequalcol)

描述:比较bytea和byteawithoutorderwithequalcol数据大小,若第一个参数小于第二个参数,返回-1,若等于,返回0,若大于,则返回1。

参数类型:byteawithoutorderwithequalcol, bytea

返回值类型:int4

  1. byteawithoutorderwithequalcoleq(byteawithoutorderwithequalcol, byteawithoutorderwithequalcol)

描述:比较两个byteawithoutorderwithequalcol类型的数据是否相同,相同则返回true,否则返回false。

参数类型:byteawithoutorderwithequalcol, bytea

返回值类型:bool

  1. byteawithoutorderwithequalcoleqbyteal(bytea, byteawithoutorderwithequalcol)

描述:比较bytea和byteawithoutorderwithequalcol数据是否相同,相同则返回true,否则返回false。

参数类型:bytea,byteawithoutorderwithequalcol

返回值类型:bool

  1. byteawithoutorderwithequalcoleqbytear(byteawithoutorderwithequalcol, bytea)

描述:比较byteawithoutorderwithequalcol和bytea数据是否相同,相同则返回true,否则返回false。

参数类型:byteawithoutorderwithequalcol, bytea

返回值类型:bool

  1. byteawithoutorderwithequalcolne(byteawithoutorderwithequalcol, byteawithoutorderwithequalcol)

描述:比较两个byteawithoutorderwithequalcol类型的数据是否不相同,不相同则返回true,否则返回false。

参数类型:byteawithoutorderwithequalcol, byteawithoutorderwithequalcol

返回值类型:bool

  1. byteawithoutorderwithequalcolnebyteal(bytea, byteawithoutorderwithequalcol)

描述:比较bytea和byteawithoutorderwithequalcol数据是否相同,相同则返回true,否则返回false。

参数类型:bytea,byteawithoutorderwithequalcol

返回值类型:bool

  1. byteawithoutorderwithequalcolnebytear(byteawithoutorderwithequalcol, bytea)

描述:比较byteawithoutorderwithequalcol和bytea数据是否不相同,相同则返回true,否则返回false。

参数类型:byteawithoutorderwithequalcol, bytea

返回值类型:bool

  1. hll_hash_byteawithoutorderwithequalcol(byteawithoutorderwithequalcol)

描述:返回byteawithoutorderwithequalcol的hll哈希值。

参数类型:byteawithoutorderwithequalcol

返回值类型:hll_hashval

由于byteawithoutorderwithequalcolin的实现会对cek进行查找,并且判断是否为正常加密后的数据类型。因此如果用户输入数据的格式不为加密后的数据格式,并且在本地不存在对应cek的情况下,会返回错误。

gbase=# SELECT * FROM byteawithoutorderwithequalcolsend('\x907219912381298461289346129'::byteawithoutorderwithequalcol);

ERROR:  cek with OID 596711794 not found

LINE 1: SELECT * FROM byteawithoutorderwithequalcolsend('\x907219912...

                                                        ^

gbase=# SELECT * FROM byteawithoutordercolout('\x90721901999999999999912381298461289346129');

ERROR:  cek with OID 2566986098 not found

LINE 1: SELECT * FROM byteawithoutordercolout('\x9072190199999999999...

                                              ^

gbase=# SELECT * FROM byteawithoutorderwithequalcolrecv('\x90721901999999999999912381298461289346129'::byteawithoutorderwithequalcol);

ERROR:  cek with OID 2566986098 not found

LINE 1: SELECT * FROM byteawithoutorderwithequalcolrecv('\x907219019...

                                                        ^

gbase=# SELECT * FROM byteawithoutorderwithequalcolsend('\x90721901999999999999912381298461289346129'::byteawithoutorderwithequalcol);

ERROR:  cek with OID 2566986098 not found

LINE 1: SELECT * FROM byteawithoutorderwithequalcolsend('\x907219019...

                                                        ^

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值