using group_concat in PHPMYADMIN will show the result as [BLOB - 3B]

前端 未结 7 1271
傲寒
傲寒 2020-12-04 16:43

I have a query which uses the GROUP_CONCAT of mysql on an integer field.
I am using PHPMYADMIN to develop this query. My problem that instead of showing 1,2 which is the

7条回答
  •  一生所求
    2020-12-04 17:04

    You can do this:

    set session group_concat_max_len = 512;
    

    If group_concat_max_len is more than 512 the query will return byte[]. But you can pass to a string.

    System.Text.Encoding.Default.GetString((byte[])DataTable.Rows[0][0]);
    

提交回复
热议问题