Hi,
i have a problem to make a transtype
from field XX varchar(20), example :
19 200 340,56
to field YY integer, required :
19200340
I make two replace
- first for replacing the , by a .
- second for replacing the space by '' (nothing)
and a cast :
insert into table2
select cast(replace(re place(XX,',','. '),' ','') as unsigned) from table
1 ;
The problem is the first replace. The space is not recognized. Even for
example with others commands related to string. If I put any other
caracter, it works.
Does anyone have any solution ?
Thanks a lot.
i have a problem to make a transtype
from field XX varchar(20), example :
19 200 340,56
to field YY integer, required :
19200340
I make two replace
- first for replacing the , by a .
- second for replacing the space by '' (nothing)
and a cast :
insert into table2
select cast(replace(re place(XX,',','. '),' ','') as unsigned) from table
1 ;
The problem is the first replace. The space is not recognized. Even for
example with others commands related to string. If I put any other
caracter, it works.
Does anyone have any solution ?
Thanks a lot.
Comment