MySQL Forums
Forum List  »  Newbie

Re: Add default value all records new column
Posted by: Phillip Ward
Date: July 12, 2022 02:16AM

If you're building a new value from other columns, there's nothing to stop you adding in "extra" bits as well.
You're already doing that with the hyphens and spaces you're putting into the concatenation, so why not add the extra literal?

, JoinDocOrig = CONCAT( Company, '-', TipoDocOrig, ' ', NumDocOrig,' S&A' )

Regards, Phill W.

Options: ReplyQuote


Subject
Written By
Posted
Re: Add default value all records new column
July 12, 2022 02:16AM


Sorry, only registered users may post in this forum.

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.