Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

mysql foreach() in common_schema

[es] :: MySQL :: mysql foreach() in common_schema

[ Pregleda: 1521 | Odgovora: 0 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

bogdan.kecman
Bogdan Kecman
"specialist"
Oracle
srbistan

Član broj: 201406
Poruke: 15887
95.180.61.*

Sajt: mysql.rs


+2377 Profil

icon mysql foreach() in common_schema02.12.2011. u 18:43 - pre 150 meseci
Mozda ce nekima biti zanimljivo:

http://code.openark.org/blog/mysql/mysql-foreach

Code:

    foreach(collection_to_iterate_over, queries_to_execute_per_iteration_step);

    call foreach('table in sakila', 'ALTER TABLE ${schema}.${table} ENGINE=InnoDB ROW_FORMAT=COMPACT');

    call $('schema like shard_%', 'CREATE TABLE ${schema}.messages (id INT)');

    call $('2000:2009', 'INSERT IGNORE INTO report (report_year) VALUES (${1})');


:)]

 
Odgovor na temu

[es] :: MySQL :: mysql foreach() in common_schema

[ Pregleda: 1521 | Odgovora: 0 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.