12
返回列表 发新帖
楼主: 小二货_

[原创] mysql 语句出错 如何切出来?

[复制链接]
论坛徽章:
3
优秀写手
日期:2014-06-11 06:00:32暖羊羊
日期:2015-03-04 14:54:572015年新春福章
日期:2015-03-06 11:59:47
11#
 楼主| 发表于 2015-1-16 10:04 | 只看该作者
fuiou_cary 发表于 2015-1-16 09:44
是的   >前面是什么你就再加一个就可以了

补充上去了,不过会报错,只能重新写一遍SQL语句了

使用道具 举报

回复
论坛徽章:
12
优秀写手
日期:2014-09-03 06:00:13双鱼座
日期:2015-12-16 10:37:41天蝎座
日期:2015-12-02 14:44:59秀才
日期:2015-11-11 09:58:34ITPUB14周年纪念章
日期:2015-10-26 17:23:44巨蟹座
日期:2015-09-02 14:45:30金牛座
日期:2015-08-25 16:02:53天蝎座
日期:2015-07-21 16:49:04喜羊羊
日期:2015-07-07 16:42:312015年新春福章
日期:2015-03-06 11:59:47
12#
发表于 2015-1-16 10:13 | 只看该作者
小二货_ 发表于 2015-1-16 10:04
补充上去了,不过会报错,只能重新写一遍SQL语句了

肯定的啊   出现这种情况就是说明前面的写法有问题,这只是告诉你错输的是什么怎么退出来而已

使用道具 举报

回复
论坛徽章:
3
优秀写手
日期:2014-06-11 06:00:32暖羊羊
日期:2015-03-04 14:54:572015年新春福章
日期:2015-03-06 11:59:47
13#
 楼主| 发表于 2015-1-16 11:18 | 只看该作者
fuiou_cary 发表于 2015-1-16 10:13
肯定的啊   出现这种情况就是说明前面的写法有问题,这只是告诉你错输的是什么怎么退出来而已

哦哦,原来如此啊,明白了,谢谢哈

使用道具 举报

回复
论坛徽章:
0
14#
发表于 2015-1-16 11:42 | 只看该作者
输入?,你就可以看到这个命令功能作用了!
MariaDB [test]> ?

General information about MariaDB can be found at
http://mariadb.org

List of all MySQL commands:
Note that all text commands must be first on line and end with ';'
?         (\?) Synonym for `help'.
clear     (\c) Clear the current input statement.
connect   (\r) Reconnect to the server. Optional arguments are db and host.
delimiter (\d) Set statement delimiter.
edit      (\e) Edit command with $EDITOR.
ego       (\G) Send command to mysql server, display result vertically.
exit      (\q) Exit mysql. Same as quit.
go        (\g) Send command to mysql server.
help      (\h) Display this help.
nopager   (\n) Disable pager, print to stdout.
notee     (\t) Don't write into outfile.
pager     (\P) Set PAGER [to_pager]. Print the query results via PAGER.
print     (\p) Print current command.
prompt    (\R) Change your mysql prompt.
quit      (\q) Quit mysql.
rehash    (\#) Rebuild completion hash.
source    (\.) Execute an SQL script file. Takes a file name as an argument.
status    (\s) Get status information from the server.
system    (\!) Execute a system shell command.
tee       (\T) Set outfile [to_outfile]. Append everything into given outfile.
use       (\u) Use another database. Takes database name as argument.
charset   (\C) Switch to another charset. Might be needed for processing binlog with multi-byte charsets.
warnings  (\W) Show warnings after every statement.
nowarning (\w) Don't show warnings after every statement.

For server side help, type 'help contents'

使用道具 举报

回复
论坛徽章:
3
优秀写手
日期:2014-06-11 06:00:32暖羊羊
日期:2015-03-04 14:54:572015年新春福章
日期:2015-03-06 11:59:47
15#
 楼主| 发表于 2015-1-19 09:57 | 只看该作者
dreampaowj 发表于 2015-1-16 11:42
输入?,你就可以看到这个命令功能作用了!
MariaDB [test]> ?

好的,非常感谢

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表