0
我在做這個查詢:如何使查詢的字段在MySQL中是一個INT
select tblagenda.ValorServicio, ((tblcopago.bonos + tblcopago.copago) * tblagenda.ValorServicio/grupo.Total) as Copago, grupo.Total
from tblcopago
inner join tblagenda on (tblagenda.CodigoOrden=tblcopago.CodigoOrden)
join (select sum(ValorServicio) as Total, CodigoOrden from tblagenda group by CodigoOrden) grupo on grupo.CodigoOrden = tblagenda.CodigoOrden
我想Copago場是一個INT
只是猜測:ROUND()?地板() – Strawberry