How to SELECT using both wildcards (LIKE) and array (IN)?

后端 未结 2 909
清酒与你
清酒与你 2021-02-19 07:08

In SQL, if you want to perform a SELECT with a wildcard, you\'d use:

SELECT * FROM table_name WHERE field_name LIKE \'%value%\'

If you wanted t

2条回答
  •  难免孤独
    2021-02-19 07:35

    SELECT *
    FROM table_name
    WHERE field_name LIKE '%one'
       OR field_name LIKE '_two'
       OR field_name LIKE 'three[abv]'
    

提交回复
热议问题