当使用MySql的DateFormat函数时,在GridView中接收System.Byte [] [英] Receives System.Byte[] in GridView when MySql's DateFormat Function is used
本文介绍了当使用MySql的DateFormat函数时,在GridView中接收System.Byte []的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我编写了这个查询,用于从mysql检索数据,如下所示
I have written this query for retrieving data from mysql as below
select FeedbackCode,EMailID,FeedbackDetail,
Date_Format(FeedbackDate,'%m,%d') as 'Feedback_Date'
from FeedbackDetail
where EMailID not like '' and InstanceCode =5
,并且我将这些数据与asp.net中的GridView绑定在一起,但是在Feedback_Date的列中,而不是日期,我收到 System.Byte []
.
and I'm binding this data with GridView in asp.net but at the column of Feedback_Date,
instead of Date I receive System.Byte[]
.
推荐答案
这是连接器中的错误.试试:
It's a bug in the connector. Try:
CAST(Date_Format(FeedbackDate,'%m,%d') AS CHAR(20))
这篇关于当使用MySql的DateFormat函数时,在GridView中接收System.Byte []的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文