Polecenie REPLACE do całej bazy danych[mysql]

Dział stworzony do rozmów o programowaniu i tworzeniu stron internetowych. Oprócz tematów związanych z SAIL'em.
User avatar
Mari
Community Veteran
Community Veteran
Poland
Mensajes: 244
Registrado: Sat Dec 02, 2006 10:32 pm

Polecenie REPLACE do całej bazy danych[mysql]

Post por Mari »

Witam, czy można polecenie REPLACE zastosować nie tylko do tabeli, ale do całej bazy danych o danej nazwie?

Tu jest do tabeli:
UPDATE nazwatabeli SET name=REPLACE(name, 'ż', 'ż');
Do you not know that you are a temple of God and that the Spirit of God dwells in you?If any man destroys the temple of God, God will destroy him, for the temple of God is holy, and that is what you are. 1 Kor 3,16-23
User avatar
Serpent
Soldier level 10
Soldier level 10
Estonia
Mensajes: 4175
Registrado: Tue Jul 07, 2009 9:13 pm
Location: Polska - EuroStan ZSRE
Contactar:

Re: Polecenie REPLACE do całej bazy danych[mysql]

Post por Serpent »

Moim zdaniem najlepszym rozwiązaniem jest zdumpować całą bazę do pliku. Tam dokonać podmiany znaku, a następnie zaimportować plik.
Epickie teksty:
Marek1906: jak zrobic aby sail był zielony?
Kvantovy: Wszystko normalne, wszystko w koło było dziwne
Kvantovy:: To jest fajne, że to nie jest takie głupie
Kvantovy:: remove sos from kanapeczka
Kvantovy:: zdarzają się rzezy które sie filozofom nie śniły
Cenwen: problemem jest gejostwo
"Taki z niego fizyk jak ze mnie baletnica" - Profesor Scholtze o Kvantovym.
JAKBYŁ BYM CZECHEM TO BYM ROZŁOŻYŁ NAMIOT ~Kvanciak
User avatar
Mari
Community Veteran
Community Veteran
Poland
Mensajes: 244
Registrado: Sat Dec 02, 2006 10:32 pm

Re: Polecenie REPLACE do całej bazy danych[mysql]

Post por Mari »

Dzięki serdecznie za podpowiedź, już zrobiłem całą zamiankę, można zamknąć.
Do you not know that you are a temple of God and that the Spirit of God dwells in you?If any man destroys the temple of God, God will destroy him, for the temple of God is holy, and that is what you are. 1 Kor 3,16-23
Responder