Brice Ruth <[EMAIL PROTECTED]> writes: > SELECT length(monographid) FROM tblpemdruglink WHERE drugid='DG-5039'; > I get 5 returned to me, even though the string is only 4 ('2008'). Okay, so you've got some invisible character in there, but not a space (else the trim() woulda got rid of it). Tab maybe? Might want to go back and examine your original data file more carefully, with an editor that will show you control characters and such. regards, tom lane
- [GENERAL] Re: [SQL] Re: SQL Join - MySQL/PostgreSQL diff... Michael Fork
- [GENERAL] Re: [SQL] Re: SQL Join - MySQL/PostgreSQL... Tom Lane
- [GENERAL] Re: [SQL] Re: SQL Join - MySQL/PostgreSQL... Michael Fork
- Re: [GENERAL] Re: [SQL] Re: SQL Join - MySQL/Postgr... Dominic J. Eidson
- Re: [GENERAL] Re: [SQL] Re: SQL Join - MySQL/Postgr... Brett W. McCoy
- Re: [GENERAL] Re: [SQL] Re: SQL Join - MySQL/Postgr... Brice Ruth