Hello All,
I am facing problem to get exacltly value using convert function. Please follow below steps.
Crete table A (ID Real)
Insert into A values(0.0000013)
Select * from A
------
1.3 e-05
I am getting '1.3 e-05' values because datatype is real so that is why I am getting but want to get '0.0000013' values. Please let me know what have to that for that.
Please let me know asap.
Regards,
M Jain
NJ,USAYou can convert "REAL" into "NUMERIC" first and then
convert to varchar.
like,
select convert(varchar, convert(NUMERIC(30,20), id)) from A
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment