pg.ddx.io pgsql-sql@postgresql.org mailing list archivehelp / color / mirror / Atom feed
Re: string function 2+ messages / 2 participants [nested] [flat]
* string function @ 2007-11-21 18:54 gunartha <gunartha.nyoman@ptjas.co.id> 2007-11-21 03:14 ` Re: string function Phillip Smith <phillip.smith@weatherbeeta.com.au> 0 siblings, 1 reply; 2+ messages in thread From: gunartha @ 2007-11-21 18:54 UTC (permalink / raw) To: pgsql-sql; pgsql-odbc@postgresql.org Hi All, Having a little issue, and can't seem to figure it out! Every time I try to run this select command I get this error: select left(kd_aln,2) as code from airlin the error msg is : function left(character varying, integer) does not exist How to resolve this problem Thank for your attention Regards Nyoman/Bali ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: string function 2007-11-21 18:54 string function gunartha <gunartha.nyoman@ptjas.co.id> @ 2007-11-21 03:14 ` Phillip Smith <phillip.smith@weatherbeeta.com.au> 0 siblings, 0 replies; 2+ messages in thread From: Phillip Smith @ 2007-11-21 03:14 UTC (permalink / raw) To: 'gunartha' <gunartha.nyoman@ptjas.co.id>; pgsql-sql; pgsql-odbc@postgresql.org Hi, I don't believe the LEFT function exists (at least by default). Try this instead: select SUBSTR(kd_aln,LENGTH(kd_aln) - 1, 2) as code from airlin Also, please don't cross-post. This isn't an ODBC question. You're more likely to get useful answers posting once to the correct list. Cheers, ~p THINK BEFORE YOU PRINT - Save paper if you don't really need to print this *******************Confidentiality and Privilege Notice******************* The material contained in this message is privileged and confidential to the addressee. If you are not the addressee indicated in this message or responsible for delivery of the message to such person, you may not copy or deliver this message to anyone, and you should destroy it and kindly notify the sender by reply email. Information in this message that does not relate to the official business of Weatherbeeta must be treated as neither given nor endorsed by Weatherbeeta. Weatherbeeta, its employees, contractors or associates shall not be liable for direct, indirect or consequential loss arising from transmission of this message or any attachments e-mail. ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2007-11-21 18:54 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2007-11-21 18:54 string function gunartha <gunartha.nyoman@ptjas.co.id> 2007-11-21 03:14 ` Phillip Smith <phillip.smith@weatherbeeta.com.au>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox