在MySQL5权威指南(第3版),人民邮电出版社。63页看到:>mysql [options] databasename <file.sql我在命令上输入情况:mysql>mysql test_natures < F:/tablecreate.sql;提示如下:ERROR 1064(42000):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 'mysql test_natures < F:/tablecreate.sql' at line 1搞不懂怎么回事。另外,当前是用root用户使用test_natures数据库。
解决方案 »
- 投票程序,三张表,一张问题表,一张ip地址表,一张记录投票结果表,每个问题可以让多个ip投票,那记录投票结果表里,用什么数据类型来记录ip表的id。
- 数据库进程冲突的问题
- 急!! 怎么判断一条sql语句是否被执行成功??
- insert 产生的是行级还是表级别的表
- 帮忙看下ERROR 1265 (01000): Data truncated for column 'SetupType' at row 1是怎么回事啊?
- 请问网站MYSQL数据库如何移植到其他服务器上?
- SQL数据库数据备份的问题
- 在linux 下安装mysql出现如下错误
- 請教查詢語句
- 如何把表中的数据复制到另一台服务器上?
- mysql 如何存小数(不用字符串)
- 请教一个数据查询写法
试了,这样不成,而且貌似MySQL把\t当作了一个转义字符,从提示里可以看出来: < F:ablecreate.sql' at line 1
。Outfile disabled.ERROR 1064(42000):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 'mysql test_natures < F:ablecreate.sql' at line 1还需要其他的参数??搞不明白
http://topic.csdn.net/u/20090501/15/7548d251-aec2-4975-a9bf-ca09a5551ba5.html