MySQL REGEXP Match
mysql_regexp_matchFind rows in a MySQL table where a column value matches a regular expression pattern.
Instructions
Find rows where column matches a regular expression pattern.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| col | No | Alias for column | |
| sql | No | Alias for pattern | |
| name | No | Alias for table | |
| limit | No | Maximum number of rows to return | |
| query | No | Alias for pattern | |
| table | No | Table name | |
| where | No | Additional WHERE clause for filtering | |
| column | No | Column name | |
| filter | No | Alias for where | |
| pattern | No | Regular expression pattern | |
| tableName | No | Alias for table |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Error code (e.g. VALIDATION_ERROR, QUERY_ERROR) | |
| data | No | ||
| error | No | Error message if operation failed | |
| details | No | Additional error context | |
| metrics | No | Token estimation metrics | |
| success | Yes | Whether the operation succeeded | |
| category | No | Error category (validation, query, connection, internal) | |
| suggestion | No | Suggested fix for the error | |
| recoverable | No | Whether the error is recoverable |