For example, a have varchar value “40.00” and want to use it with operators “>” or “<” in where clause. How can I use it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could convert the varchar to a decimal like:
Or use the TO_NUMBER() function:
If the field is not always a number, and you have a relatively recent Oracle installation, you can select rows where YourField is numeric like: