IT Nursery
In short: Is there any way to sort the values in a GROUP_CONCAT statement? Query: GROUP_CONCAT((SELECT GROUP_CONCAT(parent.name SEPARATOR " » ") FROM test_competence AS node, test_competence AS parent WHERE...
  • June 2, 2022
  • 0 Comments
IT Nursery
I’ve a table like: +-----------+-------+------------+ | client_id | views | percentage | +-----------+-------+------------+ | 1 | 6 | 20 | | 1 | 4 | 55 | | 1...
  • May 31, 2022
  • 0 Comments
I am doing SELECT GROUP_CONCAT(categories SEPARATOR ' ') FROM table. Sample data below: categories ---------- test1 test2 test3 test4 test1 test3 test1 test3 However, I am getting test1 test2...
  • May 24, 2022
  • 0 Comments
I have a table and I’d like to pull one row per id with field values concatenated. In my table, for example, I have this: TM67 | 4 |...
  • May 16, 2022
  • 0 Comments
I’m using GROUP_CONCAT() in a MySQL query to convert multiple rows into a single string. However, the maximum length of the result of this function is 1024 characters. I’m...
  • May 16, 2022
  • 0 Comments