mysql中 group concat長度限制

2022-03-18 19:43:41 字數 377 閱讀 4709

//這個函式有長度限制,上了多次當。預設長度1024長度。

select group_concat(id) from table;

要徹底修改,在mysql配置檔案(my.ini)中加上

group_concat_max_len = -1  # -1為最大值或填入你要的最大長度

#並重啟mysql

#在客戶端執行語句:

#show variables like "group_concat_max_len";  

#如果為自己修改的值或4294967295(設定為-1時)則修改正確。

正則匹配漢字:

preg_match_all('/[\x-\x]+/u', $message, $temp_message);

Mysql分組資料合併group concat用法

group concat用法 預設用法 select group concat vaccine name as do accinename from t vaccine where id in select vaccine id from t dog vaccine where dog id 1 1...

MySQL 多行資料合併 GROUP CONCAT

表結構及資料 drop table if exists course create table course id int 11 not null,name varchar 50 default null comment 姓名 course name varchar 50 default null ...

MySQL 多行資料合併 GROUP CONCAT

表結構及資料 drop table if exists course create table course name varchar 255 character set utf8 collate utf8 general ci default null,course name varchar 25...