Quantcast
Channel: SCN : Unanswered Discussions - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 3719

Adding Problem

$
0
0

Hi All,

 

I have created 2 variables

 

1. Test varchar(10);

2. File_change(100);

 

In script I have done like this

 

$Test = '00000049';

 

print( $Test );

 

print values is: 00000049, After I want to add 1 to this value, for that i have created script like below

 

$File_Change = $Test + 1;

 

print( $File_Change );


but i am getting print value: 50


even i tried with Concationation(||) operator


$ $File_Change = $Test || '+ ' ||1;


This time I am getting print value 00000049+1

 

But I want to get "00000050" Can anyone please guide me how to do this.

 

Thanks

Murali


Viewing all articles
Browse latest Browse all 3719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>