我是 SQL 的初学者我有一列字符串,我需要删除不在 AZ 和 az 之间的任何字符
You can use regexp_replace()
:
select regexp_replace(col, '[^a-zA-Z]', '', 'g')
Here is a db<>fiddle.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.