以下是我的 sql 查询,当我从 phpmyadmin 运行它时它运行良好,但是当我通过 PHP 运行相同的查询时,查询没有工作并给我以下错误。请让我知道如何从我的 php 文件运行此查询,以便它将在指定文件夹中创建输出文件。谢谢,
询问
SELECT * FROM lahore_student INTO OUTFILE 'b://uploaded//data.csv'
FIELDS TERMINATED BY ','
ENCLOSED BY '".'"'."'
LINES TERMINATED BY '\n'
Output: It creates file to my b drive in FOLDER named as Uploaded
错误:文件 'b:uploadeddata.csv' 已存在
NOTE: The uploaded folder was empty