在Telerik辐射器(legand)中,日期绑定为system.byte

时间:2015-10-20 04:46:19

标签: mysql asp.net vb.net

在Telerik radrotator(legand)日期绑定为system.byte

Dim mssQL=" case when a.log_type='Schedule' then" & _
          " (select case when e.schedule_type='Call Log' then cast( concat(d.user_firstname,' ',d.user_lastname,' ','Scheduled a Call On',' ',(DATE_FORMAT(e.schedule_date,'%d-%m-%Y') ) ) as char )" & _
          " when e.schedule_type='Meeting' then cast(concat(d.user_firstname,' ',d.user_lastname,' ','Scheduled a Meeting  On', ' ',(DATE_FORMAT(e.schedule_date,'%d-%m-%Y') )) as char )" & _
          " when e.schedule_type='Mail Log' then cast (concat(d.user_firstname,' ',d.user_lastname,' ','Scheduled Mail On',' ',(DATE_FORMAT(e.schedule_date,'%d-%m-%Y'))) as char) end  from crm_trn_tschedulelog e where e.log_gid=a.log_gid group by a.log_gid)"

1 个答案:

答案 0 :(得分:0)

问题在于您的CAST()concat()功能。当函数的输入参数属于不同类型时,concat()将以[{1}}的形式给出结果,这里是串联字符串和DATE。你还需要转换格式化日期并删除system.byte之前的演员表。因此,您的查询将如下所示:

Concat()