Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NUMERIC - sql equivalent?

Status
Not open for further replies.

queryjohn

Programmer
Aug 20, 2002
3
US
I have a table column that is defined as CHARACTER. However, this field should only contain numeric values. I would like to run a query that returns all rows where this field contains a non-numeric value (not including nulls).

In COBOL, I'd use the keywords NOT NUMERIC to check for this. Is there an SQL function or keyword that is equivalent?
 
Depends on what dbf you are using.

For example in SQL Server you could use:

select * from mytable
where mot isnumeric(myfield)

 
Depends on what dbf you are using.

For example in SQL Server you could use:

select * from mytable
where not isnumeric(myfield)

 
This question would be more appropriate for forum328, which is specific to Teradata issues. Perhaps one of the experts there can help you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top