私はこのSQLクエリを持っています..
select i.invoiceid as transactionid, i.date, i.total,
'invoice' as transaction_type
from invoice
そして、私はそれをphpで実行し、foreachループで合計をエコーアウトしました....
echo gettype($row['total']) . "<br/>";
すべての合計が返されましたstring
SQL クエリの i.total を int または float に変換するにはどうすればよいですか?
私はもう試した
convert(int, i.total)
そしてそれはうまくいきませんでした:(