Nov 28, 2002 #1 mkey Programmer Oct 3, 2001 288 CA Hi all, string 1:'abc def' string 2:'abcdef ' I know checking space between a string (string 1) is easy. But how do you check for a trailing space in the string 2? Thanks!
Hi all, string 1:'abc def' string 2:'abcdef ' I know checking space between a string (string 1) is easy. But how do you check for a trailing space in the string 2? Thanks!
Nov 28, 2002 #2 rcurva Programmer Jul 17, 2001 548 AU How about the INSTR function? 1 SELECT INSTR('abcdef ',' ') 2* FROM sys.dual SQL->/ INSTR('ABCDEF','') ------------------ 7 Robbie "The rule is, not to besiege walled cities if it can possibly be avoided" -- Art of War Upvote 0 Downvote
How about the INSTR function? 1 SELECT INSTR('abcdef ',' ') 2* FROM sys.dual SQL->/ INSTR('ABCDEF','') ------------------ 7 Robbie "The rule is, not to besiege walled cities if it can possibly be avoided" -- Art of War
Nov 29, 2002 #3 lewisp Programmer Aug 5, 2001 1,238 GB If you want a boolean return you could use SELECT columns FROM table WHERE string2 != Rtrim(string2); Upvote 0 Downvote
If you want a boolean return you could use SELECT columns FROM table WHERE string2 != Rtrim(string2);