develooper Front page | perl.dbi.users | Postings from December 2021

select decimal column from mysql

Thread Next
From:
john miky
Date:
December 20, 2021 05:21
Subject:
select decimal column from mysql
Message ID:
CACbameGJaS=6uL2U=uaRtJnmPFRbVKk6vQsGNE-h5GUC0js1wQ@mail.gmail.com
hi,

I select a decimal column, from mysql with dbi,
the value 0.015 for example,  my ($v) = $dbh->selectrow_array("select price
from test limit 1")
it is greater than 0 in perl.

What's the proper way to get a float value ?

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About