Author Topic: Need help with SELECT statement (ORACLE)  (Read 908 times)

0 Members and 1 Guest are viewing this topic.

Offline iPixelTopic starter

  • Devotee
  • Posts: 567
    • View Profile
Need help with SELECT statement (ORACLE)
« on: April 26, 2010, 04:13:03 PM »
I have a field called pnum and it contains numbers such as 7171, 1234, 6548,1695, 7186549872,2124856034,9854567336

and i want to SELECT FROM table WHERE pnum (does not exceed 4 characters).

I just want a list of all rows that containa  number like 1234  and not 7186549872

Thanks!

Offline F1Fan

  • Devotee
  • Posts: 1,178
  • Gender: Male
    • View Profile
Re: Need help with SELECT statement (ORACLE)
« Reply #1 on: April 26, 2010, 05:09:57 PM »
SELECT FROM table WHERE length(pnum) <= 4