To check space in varchar2 column

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bsathishmca
    New Member
    • Aug 2008
    • 3

    To check space in varchar2 column

    Hi Guiders,

    I need to check the whether space is there in verchar column or not.


    select a.mycol1,a.myco l2 from mytable a where (decode(length( a.mycol1),lengt h(rtrim(a.mycol 1)),'No') is NULL and a.prcs_dte='11-Aug-2008';

    The above query only i have used.But i need to check for n number of varchar columns in same table.Can any one suggest me.

    Note : I have only select permission on the tables.So i could not able to use user_tab_col.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Why not just use INSTR ?

    Comment

    • debasisdas
      Recognized Expert Expert
      • Dec 2006
      • 8119

      #3
      simply try to check if

      column=trim(col umn)

      i think you are not trying to findout space inbetween chars.

      Comment

      Working...