本文介绍了在mysql中使用group_concat时,它将获取有限的数据集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好...
我有这样的查询:

hi all...
i have a query like this :

SELECT group_concat( DISTINCT '',`fromfirstname`,': ','',`message` SEPARATOR '<br />' ) as Message,`fromusername`,`tousername`,`sessionname`,tofirstname,concat(DATE_FORMAT(`sentdate`,'%W , %b %d , %Y '),' ',`senttime`) as DateandTime FROM `tableins` WHERE  ((fromusername='" + sess + "' or tousername='" + toid + "') OR (fromusername='" + toid + "' or tousername='" + sess + "')) AND sentdate='" + DateTime.Now.ToString("yyyy-MM-dd") + "' GROUP BY `sessionname` ORDER BY `id` DESC


它会返回到一些有限的字符,这里我的问题是我需要获取表中显示的所有数据.这个问题让我受了很多苦.
任何人都可以帮我吗......
在此先感谢


it will returns upto some limited charecters here my problem is i need to get all the data presented in table. i was suffered a lot with this issue..
can any one help me please....
thanks in advance

推荐答案


这篇关于在mysql中使用group_concat时,它将获取有限的数据集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-01 11:58