MYSQL结果以特定的表格格式显示在结果页面上

时间:2013-04-30 05:23:33

标签: c# asp.net mysql mysqli

我正在使用VS 2010,MYSQL,ASP.Net,C#。 我需要在ASPX页面上创建以下结构。 我通过查询获得了所需的结果,但现在我需要在单行中创建图像的描述部分。请帮助我,如何完成这项工作?

enter image description here

Select tbladjustment.colId,tbladjustment.colDate,
CASE
WHEN ( tbladjustmentdetail.colDebit is null ) = true THEN 'Credit'
WHEN ( tbladjustmentdetail.colCredit is null ) = true THEN 'Debit'
ELSE 'Status'
END AS DRCR,
tblaccounts.colAccName,  tbladjustmentdetail.colDebit,
tbladjustmentdetail.colCredit,
tblcurrency.Currency,tbladjustment.colMemo
from tbladjustment
inner join tbladjustmentdetail on tbladjustment.colId=tbladjustmentdetail.colAdjustId
inner join tblcurrency on tbladjustmentdetail.colCurrencyId=tblcurrency.ColId
inner join tblaccounts on tbladjustmentdetail.colAccId=tblaccounts.colAccId
where tbladjustment.colCompanyId= 8 && tbladjustment.colIsDeleted=0 &&         tblladjustmentdetail.colIsDeleted=0;

0 个答案:

没有答案