in reply to Re: convert bigint to int
in thread convert bigint to int
$Row->{first_term} is in bigint and i want it to be int (sql server 2008).my $SQL= "SELECT TOP 1000 [name_software] ,[first_term] ,[term_sofi] ,[max_term] FROM [ADM_SHARED].[dbo].[mida_rights]"; my $Select = $dbh->prepare($SQL); $Select->execute(); while(my $Row=$Select->fetchrow_hashref) { print "$Row->{name_software}\t $Row->{first_term}\t $Row->{term_sofi +}\t"; print "\n"; } $dbh->disconnect;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: convert bigint to int
by huck (Prior) on Apr 05, 2017 at 08:43 UTC | |
by Anonymous Monk on Apr 05, 2017 at 08:45 UTC | |
by huck (Prior) on Apr 05, 2017 at 09:01 UTC |