我是数据库新手,我最近下载了mysql 5.1并从网站上学习命令。我无法将文件中的数据插入数据库。我正在使用命令行并输入相同的命令
http://www.webdevelopersnotes.com/tutorials/sql/mysql_course_inserting_data_in_mysql_tables.php3
但它发出错误..我正在使用Windows 7 ..是不支持的文件格式?或命令错了?请帮忙...提前谢谢
文件名是“nit.dat”...创建了一个名为'nitish'的数据库,里面的一个名为'stud'的表现在输入了
mysql nitish < nit.dat ;
在命令行...我将文件nit.dat保存在bin目录中....该文件包含三个要插入的记录.....
插入stud(id,name,age)值(99,“nit”,23); 插入stud(id,name,age)值(22,“nit22”,12); 插入stud(id,name,age)值(10,“nit10”,56);
系统提示我显示错误信息......
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
nitish < nit.dat' at line 1
....该怎么办?