使用REGEXP INSQL/PL无重复数字
我有下面的表,需要使用正则表达式显示正确的课程数字(3位数字为最大数字#),并且最大肯定不会出现两次数字。
我创建的以下代码是:
select regexp_substr(course_number,'([0-9][0-9][0-9])\1') as CourseNumber
从课程中 /
这是正确的,向我展示了一个输出:
我如何确保sql/pl中的regexp在不重复数字的情况下查询数字?
我创建的表格外观像这样:
I have a table below and need to use a regular expression to display the correct course digits ( 3 digits being the max # of digits) and also max sure no number appears twice.
the following code I have created is this:
select regexp_substr(course_number,'([0-9][0-9][0-9])\1') as CourseNumber
from courses
/
this is correct showing me an output of this:
How can I sure the regexp in sql/pl to query the digits with no numbers repeating?
the table I created looks like this:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论