Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
MySQL データベースがあります。
そのテーブルには、「itm_name」というフィールドがあります
このフィールドから数ビットのデータを取得しようとしています。
ただし、不規則な空白と配置による不均一性があります。
一部のエントリを右にシフトし、シフトした領域を WhiteSpace に置き換えることはできますか?
例えば:
From: CHOCOABLOC (CH Egg. | To: CHOCOABLOC (CH Egg. |
update your_table set your_column = concat(' ', your_column) where substring(your_column, 1, 2) != ' '