перенос данных из одной базы в другую
Добавлено: 2006-11-04 12:59:17
Привед народ. Только не пинайте сильно, а помогите реальными коммандами. Есть mysql, в ней создано 2 базы база flows и база test_db. Мне нужно из базы flows перенести данные в базу test_db(в ней сделаны таблицы по аналогии с flows).
так вот я захожу в mysql, делаю
use flows
затем
insert into test_db.flows select from flows where date>"2006-07-01 10:20:02" and date<"2006-08-01 00:00:00";
а он мне говрит
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from flows where date >"2006-07-01 10:20:02" and date <"2006-08-01 00:00:00"' at line 1
помогите как правильно написать?
так вот я захожу в mysql, делаю
use flows
затем
insert into test_db.flows select from flows where date>"2006-07-01 10:20:02" and date<"2006-08-01 00:00:00";
а он мне говрит
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from flows where date >"2006-07-01 10:20:02" and date <"2006-08-01 00:00:00"' at line 1
помогите как правильно написать?