Forum Moderators: coopster

Message Too Old, No Replies

[sql] selecting records starts with a digit

urgent!

         

Skeleton

6:00 pm on Mar 2, 2005 (gmt 0)

10+ Year Member



hi there, i need a sql statement for selecting from a table with the condition of one field's first char must be a digit like 1abc, 0aaaa, 99999.... i need regeexp i think? thanks

coopster

6:18 pm on Mar 2, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Using MySQL?
SELECT mycolumn FROM mytable WHERE mycolumn REGEXP '^[[:digit:]]';

Skeleton

6:21 pm on Mar 2, 2005 (gmt 0)

10+ Year Member



yeah it was mysql, thanks, working :)