select *
from chartname
where itemvalue ~'^[A-Z]'
我还想包括[a-z],所以我尝试了以下方法:
select *
from chartname
where itemvalue ~'^[A-Z]' or ~'^[a-z]'
和
select *
from chartname
where itemvalue ~'^[A-Z]' and ~'^[a-z]'
但这似乎不管用
select *
from chartname
where itemvalue ~'^[A-Z]'
我还想包括[a-z],所以我尝试了以下方法:
select *
from chartname
where itemvalue ~'^[A-Z]' or ~'^[a-z]'
和
select *
from chartname
where itemvalue ~'^[A-Z]' and ~'^[a-z]'
但这似乎不管用
2条答案
按热度按时间8ulbf1ek1#
如果满足以下条件,则第一个查询可以工作:
但这里有一个更好的方法:
xfyts7mz2#
我怀疑你想要:
其中itemvalue ~'^[a-za-z]'
这是以52个罗马字母中的一个开始的任何值。