我正在使用 dbvisualizer SQL 语句,并试图搜索一个字段是否有字母和数字,或者只有一个或另一个。这可以以简单的方式完成吗?目前我只是像这样单独检查每一个:
case when card_address like '%0%'
or card_address like '%1%'
or card_address like '%2%'
or card_address like '%3%'
or card_address like '%4%'
or card_address like '%5%'
or card_address like '%6%'
or card_address like '%7%'
or card_address like '%8%'
or card_address like '%9%'
then 'True' else 'False' end as numbers_in_address