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.
私の問題は、大きなデータ ダンプのフォーマットがわずかに間違っている列があることです。
VolumeNumber ------------ Volume 1Numbers 1 & 2 Volume 1Numbers 1 & 2 Volume XIINumbers 3 & 4 Volume XIINumbers 3 & 3
問題は、Number という単語の前にスペースがないことです。すなわち (ボリューム 1 番号 1 & 2)
この問題を手動で修正するには、非常に多くの行があります。
とにかく書いたという理由だけで、@ Seanの(おそらくより良い)ソリューションの代替手段です:)
UPDATE Table1 SET VolumeNumber = INSERT(VolumeNumber, LOCATE('Numbers ', VolumeNumber), 0, ' ')
でテストする SQLfiddle。