IS UNKNOWN

简介:

语法

 
  
  1. A IS UNKNOWN

入参

  • A

    BOOLEAN类型。

功能描述

当两边无法进行正常的逻辑判断时,即A(逻辑比较表达式)值既不是TRUE也不是FALSE,返回 TRUE。可正常逻辑判断时,即A值为TRUE或者FALSE,返回 FALSE
正常情况下< numeric >与< numeric>作逻辑比较时(例如6<>8),A值为TRUE或者FALSE。但是,当其中一个不为< numeric >数据类型时,就会出现无法比较的情况。IS UNKNOWN就是判断这种情况是否存在。。

示例

  • 测试数据
int1(int) int2(int)
255 97
  • 测试案例1
 
  
  1. SELECT int2 as aa
  2. FROM T1
  3. WHERE int1=25 IS UNKNOWN;
  • 测试结果1

    返回值为空。

  • 测试案例2
     
        
    1. SELECT int2 as aa
    2. FROM T1
    3. WHERE int1 > null IS UNKNOWN;
  • 测试结果2
aa(int)
97
本文转自实时计算—— IS UNKNOWN
相关文章
|
8月前
|
安全 JavaScript
any和unknown有何区别?
any和unknown有何区别?
170 1
|
缓存 PHP
Composer 报错 Error while processing content unencoding: Unknown failure within ...
Composer 报错 Error while processing content unencoding: Unknown failure within ...
229 0
|
4月前
|
Ubuntu Linux
progs/verifier_netfilter_retcode.c:42:1: error: unknown attribute 'btf_decl_tag' ignored
progs/verifier_netfilter_retcode.c:42:1: error: unknown attribute 'btf_decl_tag' ignored
|
7月前
|
JSON 数据格式
【ERROR】Error: transaction invalidated with status (ENDORSEMENT_POLICY_FAILURE)
【ERROR】Error: transaction invalidated with status (ENDORSEMENT_POLICY_FAILURE)
57 0
|
8月前
|
应用服务中间件 Python 容器
ERROR [ntContainer#0-1] o.s.a.r.l.SimpleMessageListenerContainer 1917: Failed to check/redeclare aut
ERROR [ntContainer#0-1] o.s.a.r.l.SimpleMessageListenerContainer 1917: Failed to check/redeclare aut
287 0
schannel: next InitializeSecurityContext failed: SEC_E_ILLEGAL_MESSAGE (0x80090326)
schannel: next InitializeSecurityContext failed: SEC_E_ILLEGAL_MESSAGE (0x80090326)
438 0
schannel: next InitializeSecurityContext failed: SEC_E_ILLEGAL_MESSAGE (0x80090326)
编译x264:avisynth_c.h:825:3: error: unknown type name ‘HMODULE‘
编译x264:avisynth_c.h:825:3: error: unknown type name ‘HMODULE‘
169 0
解决办法:error: unknown type name ‘__int64‘
解决办法:error: unknown type name ‘__int64‘
517 0
|
Unix
clang: error: unknown argument: ‘-fpch-deps‘
clang: error: unknown argument: ‘-fpch-deps‘
130 0
|
并行计算 PyTorch 算法框架/工具
CUDA unknown error - this may be due to an incorrectly set up environment 问题解决
CUDA unknown error - this may be due to an incorrectly set up environment 问题解决
CUDA unknown error - this may be due to an incorrectly set up environment 问题解决