MySQL Forums
Forum List  »  Newbie

Re: How to store part of a field value in another column in SQL
Posted by: Peter Brawley
Date: May 16, 2016 01:40PM

`oldColumn` violates the atomicity rule of database design.

Best to break that column into its component columns, and move the part values using the substring() func. If you need to display concatenations of those new values, do it in a view, or since version 5.7 as a derived column.



Edited 1 time(s). Last edit at 05/17/2016 08:20AM by Peter Brawley.

Options: ReplyQuote


Subject
Written By
Posted
Re: How to store part of a field value in another column in SQL
May 16, 2016 01:40PM


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.