MYSQL tee 语法不起作用 [英] MYSQL tee syntax not working

查看:74
本文介绍了MYSQL tee 语法不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Can anyone help me with this? I am currently trying to write my queries to a file and I will eventually close it with notee; call. I have used the tee call before but for some reason today I am having problems.

这里是有问题的语法:

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

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

The file trash has been created so I know that is not the issue.

任何帮助将不胜感激,谢谢.

Any help will be appreciated thank you.

推荐答案

teenotee 命令仅在 MySQL 命令行客户端.它们不由服务器处理,因此不能在 phpMyAdmin 等应用程序中使用.

The tee and notee commands are only available in the MySQL command-line client. They are not handled by the server, so they cannot be used in applications like phpMyAdmin.

这篇关于MYSQL tee 语法不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆