Unix Technical Forum

Re: [Fwd: SQL As statement w/ delimiter]

This is a discussion on Re: [Fwd: SQL As statement w/ delimiter] within the Informix forums, part of the Database Server Software category; --> Follow-up to a response I made earlier - but it won't be properly threaded in the news groups (sorry)... ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 07:40 AM
Jonathan Leffler
 
Posts: n/a
Default Re: [Fwd: SQL As statement w/ delimiter]


Follow-up to a response I made earlier - but it won't be properly threaded
in
the news groups (sorry)...

Tom <feelingcocky@hotmail.com> wrote:
> Trying to do some very basic SQL on an Informix 7.x box. What I know

works
> is this for either a telnet session or an ODBC connection.
>
> Select size from item
> Select size as bob from item
>
> What doesn't work is
>
> Select 0 as size from item


This definitely works for me with DB-Access or SQLCMD and IDS 9.40.UC4
on Solaris 8.

> Select 0 as 'size' from item
> Select 0 as "size" from item


Somewhat to my surprise - my memory is clearly getting rusty - both of
these
generate -201 syntax error messages under normal circumstances. If you
set
DELIMIDENT, then the double-quoted version works fine.


--
Jonathan Leffler (jleffler@us.ibm.com)
STSM, Informix Database Engineering, IBM Data Management
4100 Bohannon Drive, Menlo Park, CA 94025
Tel: +1 650-926-6921 Tie-Line: 630-6921
"I don't suffer from insanity; I enjoy every minute of it!"

sending to informix-list
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:57 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com