Rename columns within a query?


is there way can rename column within coldfusion query? i've attached example.

i've joined table same table here , have named them , b. want able rename columns in b that, when display output, not have same names in a. (eg. b_pkgname , b_pkgrev).

brandi l wrote:
> there way can rename column within coldfusion query?

yup , in other technology making use of sql supports
alias 'as' statement.

i.e.

select
a.site,
a.pkgname,
a.pkgrev,
b.pkgname b_pkgname,
b.pkgrev b_bkgrev
...


i hear things ben forta's "teach sql in 10 minutes"
as many sql references , tutorials available on internets.



More discussions in Database Access


adobe

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support