You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello.
I have a problem with combination PREG_CAPTURE and group by
Type of field which I am working with: requestUri varchar(255) null
This query works fine
SELECT PREG_CAPTURE('~^(/[^/]+)~', requestUri) as requestUri
FROM`dict_log_error404`
All the rest goes Mariadb down. The only way to make it live is command killall -9 mysqld.
All I need is make to do count.
SELECT PREG_CAPTURE('~^(/[^/]+)~', requestUri) as requestUri, count(*) as cnt
FROM dict_log_error404
group by requestUri
My another try
SELECT PREG_CAPTURE('~^(/[^/]+)~', requestUri) as requestUri
FROM dict_log_error404
where requestUri regexp '^(/[^/]+)'group by requestUri
.. and another one
selectcount(*) as cnt, requestUri from
(
SELECT PREG_CAPTURE('~^(/[^/]+)~', requestUri) as requestUri
FROM dict_log_error404
where requestUri regexp '^(/[^/]+)'
) e
group by requestUri
Help me, please.
I like PRCE so much! ;)
The text was updated successfully, but these errors were encountered:
Hello.
I have a problem with combination
PREG_CAPTURE
andgroup by
Type of field which I am working with:
requestUri varchar(255) null
This query works fine
All the rest goes Mariadb down. The only way to make it live is command
killall -9 mysqld
.All I need is make to do count.
My another try
.. and another one
Help me, please.
I like PRCE so much! ;)
The text was updated successfully, but these errors were encountered: