當我在mysql中運行聯合查詢時,有些值返回爲BLOB,有沒有辦法解決這個問題? 我工會查詢,因爲我想具體列的和是在底部Mysql查詢返回帶聯盟加入的BLOB
select a.app_file_id,a.app_trn,a.app_fname,a.app_lname,l.computer_interest,l.loan_life,l.app_ln_amnt, l.commit_date,l.app_amnt_owed,r.amount_paid
from applicant a
left join loan l on l.l_app_file_id=a.app_file_id
left join receipt r on r.r_app_file_id=l.l_app_file_id
WHERE l.app_loan_type=r.receipt_loan_type
AND l.app_loan_type='Computer Loan'
AND MONTHNAME(commit_date) = 'April'
and YEAR(commit_date)=2012
Union
Select '', '','','','','',SUM(l.app_ln_amnt),'',SUM(l.app_amnt_owed),SUM(r.amount_paid)
from applicant a
left join loan l on l.l_app_file_id=a.app_file_id
left join receipt r on r.r_app_file_id=l.l_app_file_id
WHERE l.app_loan_type=r.receipt_loan_type
AND l.app_loan_type='Computer Loan'
AND MONTHNAME(commit_date) = 'April'
and YEAR(commit_date)=2012
什麼是回來作爲BLOB?什麼是模式? – 2012-04-11 15:35:56
返回blob的colums是; s_app_trn是INT(9),computer_interest是雙精度,loan_life是int(11)和commit_date是DATE – dames 2012-04-11 15:40:42