---
title: "查询某个字段都是字母"
author: "zybing"
date: "2017-02-07T14:33:24Z"
tags: []
categories: ["数据库"]
slug: "untitled"
draft: false
lastmod: "2017-02-07T14:33:24Z"
id: 2355903
url: "https://zybing.iteye.com/blog/2355903"
---

select * from (  
select  case when regexp\_like(bank\_account\_name,'.(\[a-z]+|\[A-Z])') then bank\_account\_name else null end  cc  
from tb\_pay\_business tt  
where tt.uss\_trans\_date = '20170124'  
) bb  
where bb.cc is not null