SQL Query Where Column = '' returning Emoji characters

前端 未结 4 1657
半阙折子戏
半阙折子戏 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:25

    Google send me here looking for a way filter all rows with an emoji on a varchar column. In case that your looking for something similar:

    SELECT mycolumn
    FROM mytable
    WHERE REGEXP_EXTRACT(mycolumn,'\x{1f600}')  <> ''
    

    the \x{1f600} is the char code for the searched emoji, you can find the emoji codes here

提交回复
热议问题