Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Applies to:
Databricks SQL
Databricks Runtime 10.0
Returns true if str matches regex.
Syntax
str [NOT] rlike regex
Arguments
str: ASTRINGexpression inUTF8_BINARYcollation to be matched.regex: ASTRINGexpression with a matching pattern.
Returns
A BOOLEAN.
The regex string must be a Java regular expression.
When using literals, use raw-literal (r prefix) to avoid escape character pre-processing.
rlike is a synonym for regexp operator.
str NOT rlike ... is equivalent to NOT(str rlike ...).
Common error conditions
Examples
> SELECT r'%SystemDrive%\Users\John' rlike r'%SystemDrive%\\Users.*';
true
> SELECT r'%SystemDrive%\Users\John' rlike r'%SystemDrive%\Users.*';
Error: INVALID_PARAMETER_VALUE.PATTERN
> SELECT r'%SystemDrive%\Users\John' rlike '%SystemDrive%\\\\Users.*';
true