我有一个地址街的表,我想确保地址包含街道以及房屋/建筑物编号(saxon 17)我想写一个SQL查询来查找字段地址不包含数值的行.我怎样才能做到这一点?
a_h*_*ame 16
这可以使用正则表达式完成:
select *
from the_table
where address_column !~ '[0-9]'
Run Code Online (Sandbox Code Playgroud)
有关正则表达式和模式匹配的更多详细信息,请参见手册:http:
//www.postgresql.org/docs/current/static/functions-matching.html
| 归档时间: |
|
| 查看次数: |
13211 次 |
| 最近记录: |