SQL Query Where Column = '' returning Emoji characters

前端 未结 4 1660
半阙折子戏
半阙折子戏 2020-12-04 02:11

Ok so I have a table with three columns:

Id, Key, Value

I would like to delete all rows where Value is empty (\'\'

4条回答
  •  不思量自难忘°
    2020-12-04 02:31

    It's not an answer to your "why", but in terms of your overall goal, perhaps you should alter your strategy for searching for empty values:

    Select * from [Imaging.ImageTag] where LEN([Value]) = 0
    

    As per the comments (thanks Martin Smith for providing some copy/pastable emoji):

    SELECT CASE WHEN N'' = N'

提交回复
热议问题