易截截图软件、单文件、免安装、纯绿色、仅160KB

mysql 查询问题 - 其他数据库开发 / MySQL/Postgresql

mysqL 语句:select examlist_name as name,from_UNIXTIME(examlist_kaoshiriqi,'%Y-%m-%d') as kaoshiriqi,from_unixtime(examlist_baomingriqi '%Y-%m-%d') as baomingriqi,examlist_belong as belong from dede_examlist where examlist_kaoshiriqi>unix_timestamp();
查询的结果为:

name kaoshiriqi baomingriqi belong

第一次证券考试 2010-05-28 2010-05-14 zq
第一次证券考试 2010-05-29 2010-05-14 zq
第一次证券考试 2010-05-28 2010-05-15 zq
第一次证券考试 2010-05-29 2010-05-15 zq
第二次考试 2010-06-25 2010-06-01 zq
第二次考试 2010-06-26 2010-06-01 zq
第三次考试 2010-06-24 2010-06-18 zq
第三次考试 2010-06-26 2010-06-18 zq
第四次考试 2010-06-25 2010-06-19 zq
第四次考试 2010-06-26 2010-06-19 zq
第五次考试 2010-06-24 2010-06-12 zq
第五次考试 2010-06-25 2010-06-12 zq
第五次考试 2010-06-17 2010-06-10 zq
第五次考试 2010-06-18 2010-06-10 zq
第八次证券考试 2010-06-22 2010-06-12 zq
第八次证券考试 2010-06-22 2010-06-13 zq
第九次考试 2010-10-11 2010-10-05 zq
第一次银行考试 2010-07-12 2010-07-11 yh
第二次银行考试 2010-07-22 2010-07-20 yh
这个查询的结果,我想把name 值相同的记录,合并成一条记录,mysql 语句可以实现吗?

引用name kaoshiriqi baomingriqi belong

第一次证券考试 2010-05-28 2010-05-14 zq
第一次证券考试 2010-05-29 2010-05-14 zq
第一次证券考试 2


相关问答:

mysql预处理 - 其他数据库开发 / MySQL/Postgresql

SQL code:

create procedure proc_batchUpdate(in categoryId integer , in artIds varchar(50))
begin
set @dsql = count('update article set type=' , categoryId , ' where id in (' , artIds , ' ......

一个mysql中关于in子查询的问题 - Java / Web 开发

SELECT * from alarms where id in (select resource_id from res_products where product=22)
这个语句在mysql中为什么不能执行?我的mysql数据库是5.0.27版本的!
如果实在不行那么该用个什么语句代替效率更高呢 ......

MYSQL连接的问题 - Java / Java SE

Java code:

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was51093 seconds ago.The last packet sent successfully to the server was 5 ......

mssql函数翻译 - 其他数据库开发 / MySQL/Postgresql

跪求将以下函数翻译为 mysql 的语法
CREATE FUNCTION workdayadd( 
@date datetime, --基础日期 
@workday int --要增加的工作日数 
)RETURNS datetime 
AS 
BEGIN 
DEC ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号