这个查询是在MySql工作台上运行的,现在我需要在Zend中使用它。
INSERT new_table SELECT * from old_table WHERE date(created_time) < 2015-04-05;发布于 2015-09-07 19:51:01
您所需要做的就是使用适配器的query方法。
// $db is your DB adapter, e.g. an instance of Zend_Db_Adapter_Mysqli
$db->query('INSERT new_table SELECT * from old_table WHERE date(created_time) < 2015-04-05');https://stackoverflow.com/questions/32355953
复制相似问题