MySQL Forums
Forum List  »  Newbie

Re: Change field contents on select
Posted by: Peter Brawley
Date: November 08, 2017 10:38AM

The usual way to do that is with a keyed lookup table, eg in your case parts(partno, name, manufacturer, ... ) so you can write something like ...

select ..., parts.name, ...
from orders
join parts using(partno)
...

Options: ReplyQuote


Subject
Written By
Posted
Re: Change field contents on select
November 08, 2017 10:38AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.