0

I have column in my database table named 'anwers' of type 'character'. Data may be numbers or strings that's why I used column of type 'character'. And I have to calculate the sum of anweres if it is a numeric. But I found that ISNUMERIC will not work for column type of text/character . How can I solve this issue?

2
  • My question is, column type is character but it's not work with isnumeric.But I have to use isnumeric. Commented Jun 29, 2017 at 10:46
  • isnumeric() with PostgreSQL Commented Jun 29, 2017 at 10:48

1 Answer 1

0

In DB2, I've done something like UCASE(answers) = LCASE(answers) to test if it's numeric. This could work if your column is simple letters/numbers, not including punctuation characters.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.