注册

字符串拼接时,如何设置null不等价为空字符串

Ming 2024/11/19 332 6

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:dm8
【操作系统】:win server 2019
【CPU】:
【问题描述】*:

SELECT buildingId FROM BuildingInfo where bdi_path like (SELECT bdi_path FROM BuildingInfo where buildingId=3157)+'%'

表中不存在 buildingId=3157数据,查询并拼接'%'后,导致查询出全表数据了
请问设置null拼接'%'后依然为null

回答 0
暂无回答
扫一扫
联系客服