数据仓库服务 GAUSSDB(DWS)-比较和列表操作符:LIKE ANY/NOT LIKE ANY

时间:2024-12-10 11:28:48

LIKE ANY/NOT LIKE ANY

输入:LIKE ANY/NOT LIKE ANY
1
2
3
SELECT c1, c2
  FROM tab1
 WHERE c3 LIKE ANY ('STR1%', 'STR2%', 'STR3%');

输出

1
2
3
SELECT c1, c2
  FROM tab1
 WHERE c3 LIKE ANY (ARRAY[ 'STR1%', 'STR2%', 'STR3%' ]);
support.huaweicloud.com/tg-dws/dws_16_0047.html