mOrloff
11-07-2011, 04:03 PM
We've got some convoluted data in ramshackle tables, and I'm exporting it so we can actually use it and grow.
The info is currently in MS SQL, and I will be going to MySQL.
I need to SELECT * for these tables and have all fields REPLACE({field_value},'"',"''") ... or something.
Some of these tables have about a hundred columns, and I need to replace all double-quotes (") with double single-quotes ('').
I'm hoping there is a way to do this efficiently without having to type in all those REPLACE's manually, because that's not much of an option at all :D
Pointers??
Links??
Advice??
~ Mo
The info is currently in MS SQL, and I will be going to MySQL.
I need to SELECT * for these tables and have all fields REPLACE({field_value},'"',"''") ... or something.
Some of these tables have about a hundred columns, and I need to replace all double-quotes (") with double single-quotes ('').
I'm hoping there is a way to do this efficiently without having to type in all those REPLACE's manually, because that's not much of an option at all :D
Pointers??
Links??
Advice??
~ Mo