Add double quotes

CREATE VIEW FOO/BAZ AS
SELECT . . . U01005 AS "Highest_Credit", . . . FROM FOO/BAR WHERE
CENSOR(U01430, U01429) = 'P'

***BEWARE***
To read from such a view, you'll need the quotes an the exact case match...

select "Highest_Credit"
from foo/baz
--works

select highest_credit
from foo/baz
--fails

select "highest_credit"
from foo/baz
--fails

Charles


On Thu, Apr 21, 2011 at 3:01 PM, James Lampert <jamesl@xxxxxxxxxxxxxxxxx> wrote:
Given a VIEW in which records are censored and fields are renamed:

CREATE VIEW FOO/BAZ AS
SELECT . . . U01005 AS Highest_Credit, . . . FROM FOO/BAR WHERE
CENSOR(U01430, U01429) = 'P'

Is there a way to have the mixed-case name (derived programmatically
from the field's descriptive text) actually go in as mixed-case? When I
execute the actual CREATE VIEW, everything gets uppercased. And is there
a way to preserve column headings when renaming fields?

--
JHHL
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].