Gossamer Forum
Home : General : Perl Programming :

MySQL problem

Quote Reply
MySQL problem
Hi, i want to know if exist a simple way to select only numbers 0-9 with a simple mysql sentece using perl ( not php ) to get all result with begin with numbers 0...9 ...



Thanks...

perl is given me a Pirate

sorry my bad english
Quote Reply
Re: [NamedRisk] MySQL problem In reply to
BETWEEN or > < operators in the WHERE clause...

EXAMPLE:

(ColumnName >= 0)
AND
(ColumnName <= 9)

- OR -

(ColumnName BETWEEN 0 AND 9)
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [Stealth] MySQL problem In reply to
Thanks a lot man...

=D i'm too newbee =D LoL
Quote Reply
Re: [NamedRisk] MySQL problem In reply to
This way that you propose to use... only work for number... and i found another tha work good for all...

collumname REGEXP '^[0-9]'



^ to match only the begin... 0123 take the 0.

and [0-9] to search for numbers begin 0 since 9...



sorry my bad english.