Jan 27, 2006 #1 dmacuk Programmer Jan 27, 2006 2 GB I have a char(10) field which can contain either a mixture of letters/numbers, or numbers only, e.g. 'ABC123' or '0000123'. Is there a where condition to only select the records which contain all numbers TIA David Mcallum
I have a char(10) field which can contain either a mixture of letters/numbers, or numbers only, e.g. 'ABC123' or '0000123'. Is there a where condition to only select the records which contain all numbers TIA David Mcallum
Jan 27, 2006 #2 ceco IS-IT--Management Oct 16, 2002 229 BG there is, but it will not be very speedy query WHERE code ~ '^[0-9]*$' Upvote 0 Downvote
Jan 27, 2006 Thread starter #3 dmacuk Programmer Jan 27, 2006 2 GB Thanks, that solved the problem David Upvote 0 Downvote