Re: [ODBC] string function
am 21.11.2007 04:14:05 von Phillip SmithThis is a multi-part message in MIME format.
------=_NextPart_000_00CB_01C82C48.C60430D0
Content-Type: text/plain;
charset="US-ASCII"
Content-Transfer-Encoding: 7bit
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.
------=_NextPart_000_00CB_01C82C48.C60430D0
Content-Type: text/html;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
charset=3Dus-ascii">
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Hi,
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>I don’t believe the LEFT =
function
exists (at least by default).
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Try this instead:
color=3Dnavy
face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>sele ct
SUBSTR(kd_aln,LENGTH(kd_aln) - 1, 2) as code from =
airlin
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>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.
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Cheers,
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>~p
0cm 4.0pt'>
style=3D'font-size:
12.0pt'>
=
=0ATHINK BEFORE YOU PRINT - Save paper if you don't really need to print t=
his e-mail.=0A
=0A*******************Confidentiality and Privilege Notice**=
*****************=0A
=0AThe material contained in this message is privileg=
ed and confidential to=0Athe addressee. If you are not the addressee indicate=
d in this message or=0Aresponsible for delivery of the message to such person,=
you may not copy=0Aor deliver this message to anyone, and you should destroy =
it and kindly=0Anotify the sender by reply email.=0A
=0AInformation in this mess=
age that does not relate to the official business=0Aof Weatherbeeta must be tr=
eated as neither given nor endorsed by Weatherbeeta.=0AWeatherbeeta, its emplo=
yees, contractors or associates shall not be liable=0Afor direct, indirect or =
consequential loss arising from transmission of this=0Amessage or any attachme=
nts=0A
=
------=_NextPart_000_00CB_01C82C48.C60430D0--