Tag: Reporting



MariaDB 10.2 Window Function Examples

MariaDB 10.2 has introduced some Window Functions for analytical queries.

See also: Window Functions, Window Functions, Window function and Rows and Range, Preceding and Following

Function ROW_NUMBER()

Simulate a row number (sequence) top 3

SELECT ROW_NUMBER() OVER (PARTITION BY NULL ORDER BY category_id) AS num
     , category.category_id
  FROM category
 LIMIT 3
;

or

SELECT ROW_NUMBER() OVER (ORDER BY category_id) AS num
     , category.category_id
  FROM category
 LIMIT 3
;
+-----+-------------+
| num | …


MySQL reporting to syslog

IMPORTANT: These information are outdated!

There are 2 different possible situations you can face when you have to deal with MySQL and syslog:

In this blog article we look at the second situation: How can you make MySQL reporting to syslog.

Since the version 5.1.20 MySQL is capable to log to syslog: The Error Log, …




Subscribe to RSS - Reporting