正则表达不起作用Sybase ASE 16.0
我正在尝试从Sybase ASE 16.0的表中检索ID,
查询必须从AB或BC开始返回ID。例子 AB0001 AB0002 BC0001 BC0002
我的查询中的正则表达式无法正常工作
*从T1中选择 * ID,例如“(ab | bc)%”
上述查询不起作用。有人可以建议在ASE中使用的正确的正则陈述。
I am trying to retrieve IDs from a table in Sybase ASE 16.0
The query has to return IDs starting with AB or BC. Example
AB0001
AB0002
BC0001
BC0002
The regular expression in my query is not working
Select * from T1 where id like '(AB|BC)%'
The above query is not working. Can someone suggest the correct regex statement that works in ASE.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
ASE 16不支持这样的正则。
请在SQL下面尝试:
ASE 16 doesn't support this kind of regex like.
Please try below SQL: