344 views
0 votes
0 votes
SQL allows a rudimentary form of patterns in which two characters have special meaning: underscore (_) stands for any one character and percent-sign (%) stands for any string of $0$ or more characters. In addition, the programmer may define any character, say e, to be the escape character, so e preceding an e preceding -, %, or another e gives the character that follows its literal meaning. Show how to express any SQL pattern as a regular expression, given that we know which character is the escape character.

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
4
admin asked Aug 5, 2019
307 views
The operator ^ matches the left end of a line, and \$ matches the right end of a line. The operator ^ is also used to introduce complemented character classes, but the co...