'Use regexp inSQL/PL for no repetitions in digits
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:
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|