Use REGEXP_LIKE(column_name, '^[[:digit:]]+$') in where clause
SELECT column_name
FROM some_table
WHERE REGEXP_LIKE(column_name, '^[[:digit:]]+$');
Useful Links:
> Oracle: SQL query that returns rows with only numeric values"All truths are easy to understand once they are discovered; the point is to discover them." - Galileo Galilei (rmaxonenote is a place for Oracle PL/SQL, C# and IFS related solutions, code snippets, and etc...)
Use REGEXP_LIKE(column_name, '^[[:digit:]]+$') in where clause
SELECT column_name
FROM some_table
WHERE REGEXP_LIKE(column_name, '^[[:digit:]]+$');
Useful Links:
> Oracle: SQL query that returns rows with only numeric valuesRead single file DECLARE file_handle_ UTL_FILE.FILE_TYPE; directory_name_ CONSTANT all_directories.directory_name%TYPE := '...
No comments:
Post a Comment