我想执行以下命令:
INTO TABLE example_table
FIELDS TERMINATED BY ';'
LINES TERMINATED BY '\n'
(field1,field2,field3);
我试图这样:
$app = Mage::app();
umask(0);
Mage::setIsDeveloperMode(true);
$write = Mage::getSingleton('core/resource')->getConnection('core_write');
$write->query("INTO TABLE example_table
FIELDS TERMINATED BY ';'
LINES TERMINATED BY '\n'
(field1,field2,field3)");
我也想CREATE OR REPLACE VIEW...
和TRUNCATE example_table
我得到的错误是:
Error: Warning: PDOStatement::execute(): LOAD DATA LOCAL INFILE forbidden in \lib\Zend\Db\Statement\Pdo.php on line 228