Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 teradata 执行以下操作,
输入字符串 -'data1 data2 (1) (Ab-123)' 需要输出 - Ab-123
输入字符串 -'data1 data2 (1) (Ab-123)'
需要输出 - Ab-123
所以基本上我想要最后一个括号中的数据。
这看起来像一个正则表达式:
select regexp_substr('data1 data2 (1) (Ab-123)', '[(]([^)]*)[)]$' )