Farakh khan wrote:may be no difference when I am getting as float but here I am getting as string and inserting into number type column of oracle sql. so its work fine for me
be prepared for the wrath of some other coder when THEY have to look at/debug/fix your code. I have no idea what an Oracle DB will do when you insert a string into a number column, but i'm pretty sure that I wouldn't rely on it to do the right thing.
IF you insist on going down this path, I would suggest you
test the HECK out of it. I would develop a ton of test cases that my guess will fail. For example, Insert someone with 4 years and 10 months. Then pull out everyone with more than 4 years and 6 months experience, and I would bet almost anything you don't get this person.
insert someone with 4 years and 2 months experience, and someone with 4 years, 11 months. Pull them out and sort by experience. I would bet you it says the person with 4y 2m has MORE experience than someone with 4y 11m.