【问题标题】:MYSQL tee syntax not workingMYSQL tee 语法不起作用
【发布时间】:2020-10-25 07:34:26
【问题描述】:

谁能帮我解决这个问题?我目前正在尝试将我的查询写入一个文件,我最终会用 note 关闭它;称呼。我以前使用过发球台,但由于某种原因,今天我遇到了问题。

这里是有问题的语法:

tee c:/trash/test.txt;
select*from customer;

这是错误:

Error
There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem.

ERROR: Unknown Punctuation String @ 6
STR: :/
SQL: tee c:/trash/test.txt;tee c:/trash/test.txt;tee c:/trash/test.txt;

SQL query:

tee c:/trash/test.txt;

MySQL said: Documentation

#1064 - 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 'tee c:/trash/test.txt' at line 1

文件垃圾已创建,所以我知道这不是问题。

任何帮助将不胜感激。

【问题讨论】:

    标签: mysql phpmyadmin


    【解决方案1】:

    teenotee 命令仅在 the MySQL command-line client 中可用。它们不由服务器处理,因此不能在 phpMyAdmin 等应用程序中使用。

    【讨论】:

    • 听起来不错,这是我之前在命令行中使用 tee 的地方。在这种情况下,我从来没有在 PHP 管理员中使用 OUTFILE 吗?
    • Outfile 是否允许多次写入同一个文件?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多