mysql 细微点汇总select group_concat(b) as b_str from table
2013-04-15 13:46
141 查看
mysql 列转行([b]group_concat)[/b]
select group_concat(b) as b_str from table;
但需要注意的是 group_concat()有长度限制的问题,发现总是有些结果是不完整的,原来group_concat()有长度限制1024,在my.ini中加上 group_concat_max_len = 200000 改大就行了,用时请注意!
select group_concat(b) as b_str from table;
但需要注意的是 group_concat()有长度限制的问题,发现总是有些结果是不完整的,原来group_concat()有长度限制1024,在my.ini中加上 group_concat_max_len = 200000 改大就行了,用时请注意!
相关文章推荐
- SQL Server 和 MySQL中 from where group by having order select 执行顺序
- Mysql中You can't specify target table for update in FROM clause错误的意思是说,不能先select出同一表中的某些值,再update这个表(在同一语句中)。
- select count(*) from USERTABLE where username LIKE CONCAT ('%',#{user.username},'%')
- SELECT TOP n or SELECT TOP Random n Rows From a Table For Each Category or Group
- Select top N records from table for each group (group by X)
- mysql select UPPER(REPLACE(uuid(),'-','')) from xxxtable 得到相同的uuid的问题
- MySql create table ... as select * from ..
- strSQL = "Select * From " & strTableName & " Where False "
- MYSQL execution time comparison(MYSQL 运行时间比较)-subselect vs select from 2 table
- UCenter info: MySQL Query Error SQL:SELECT value FROM [Table]vars WHERE noteexists
- UCenter info: MySQL Query Error SQL:SELECT value FROM [Table]vars WHERE noteexists
- mysql group_concat()函数陷阱问题
- select * from table where 1=2 的作用
- mysql group_concat函数和concat_ws 函数 详解
- mysql中错误:1093-You can’t specify target table for update in FROM clause的解决方法
- mysql group_concat( 读取出来的数据长度限制
- 数据库语句 select * from table where 1=1 的用法和作用
- insert into tablename select * from tablename与Select * into tablename from tablename 比较[转]
- mysql group_concat_max_len解决group_concat 截断
- MySQL group_concat 方法的使用