REPOST - Wildcard aliases

This is a discussion on REPOST - Wildcard aliases within the MySQL Database forums, part of the Database Forums category; Is there a way to do <snip>SELECT table.* AS alias.*</snip>, or do I have ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-16-2006
Jeff Gardner
 
Posts: n/a
Default REPOST - Wildcard aliases

Is there a way to do <snip>SELECT table.* AS alias.*</snip>, or do I
have to write additional code to automate the process?

This message was reposted because it had expired, even though it was
only up for less than an hour, and disappeared along with the excellent
response that I had received to it.
--

Regards,

Jeff Gardner
___________________________

"Contrary to popular belief, Unix is user friendly. It just happens
to be very selective about who its friends are." --Kyle Hearn
Reply With Quote
  #2 (permalink)  
Old 09-16-2006
Bill Karwin
 
Posts: n/a
Default Re: REPOST - Wildcard aliases

Jeff Gardner wrote:
> Is there a way to do <snip>SELECT table.* AS alias.*</snip>,


No.

> or do I
> have to write additional code to automate the process?


Yes.

Regards,
Bill K.
Reply With Quote
  #3 (permalink)  
Old 09-16-2006
Jerry Stuckle
 
Posts: n/a
Default Re: REPOST - Wildcard aliases

Jeff Gardner wrote:
> Is there a way to do <snip>SELECT table.* AS alias.*</snip>, or do I
> have to write additional code to automate the process?
>
> This message was reposted because it had expired, even though it was
> only up for less than an hour, and disappeared along with the excellent
> response that I had received to it.


Usenet messages don't expire. They are around forever. You can find
postings in archives from 15 years ago. And I can still see your old
message and the response.

Check your newsreader settings. Or look at the Google Groups archive of
his newsgroup.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Reply With Quote
  #4 (permalink)  
Old 09-17-2006
Bill Karwin
 
Posts: n/a
Default Re: REPOST - Wildcard aliases

Peter H. Coffin wrote:
> How is what you are asking for different from
>
> SELECT * FROM MYTABLE MYALIAS
> WHERE MYALIAS.COLNAME = 'value';


Table names and Aliases are not normally added to column labels. That
is, when you use the query above, assuming MYTABLE has columns a, b, c,
you get a result set back columns with labels a, b, c. You don't get
mytable.a, mytable.b, mytable.c, nor do you get myalias.a, myalias.b,
myalias.c.

I interpreted the OP's question that he wanted the table name included
in the label.

Regards,
Bill K.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:54 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0