MySQL Forums
Forum List  »  Newbie

Re: Perform UPDATE on rows from a SELECT
Posted by: Rick Macdonald
Date: January 30, 2017 03:39PM

Thanks, Peter, that works! No wonder I couldn't find an example of a WHERE clause with SELECT in it. DOH!

If I may, the other thing I can't find is how to format the output of SELECT to join two text fields without any delimiter. The two fields are a file path (ending with a "/") and a file name. I simply want to join them together. I can set it to a single space as shown below but specifying '' writes out gigabytes of blank lines.

SELECT strPath, strFileName FROM `episode_view` WHERE playCount IS NULL INTO OUTFILE '/tmp/t3' FIELDS TERMINATED BY " "

Options: ReplyQuote


Subject
Written By
Posted
Re: Perform UPDATE on rows from a SELECT
January 30, 2017 03:39PM


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.