sql - How to extract only numbered rows from a column -


for e.g: have column named "card no", varchar majority of rows contain numbers , few contains alphanumeric numbers. want ignore records not numbers.

below few examples same:

select cardno xx; 

result:

cardno: _______ 1234, 5467, 1234/5467, abc 667, efg428 

in above result set, want eliminate last 3 values. please advise.

select cardno xx translate(cardno, ' 0123456789', ' ') null 

Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -

java - Digest auth with Spring Security using javaconfig -