SAP hana清空CLOB

时间:2014-11-24 15:23:31

标签: hana lob

如何从表中获取所有行,其中CLOB内容为空(但不为空)? 表格箱声明:

create column table "MY_SCHEM"."ISA_TMP"( "tenant_alias" varchar(500),"local_data" CLOB null);

我试过了:

select * from "MY_SCHEM"."ISA_TMP"
where local_data = '';

1 个答案:

答案 0 :(得分:1)

您可以使用length()函数检查:

SELECT * 
FROM ISA_TMP
WHERE length(local_data) = 0;