【发布时间】:2010-10-12 08:49:08
【问题描述】:
这是我的命令行查询。
mysql> load data local infile "c:\\re\\30-11-08.csv"
into table powerdata(Date, DG1, DG2, DG3, Dg4, DG5, ChillerPanel1,
ChillerPanel2, ChillerPanel3, ChillerPanel4,1st_Floor, 2nd_Floor,
3rd_Floor, 4th_Floor, UPS1, UPS2, UPS3, UPS4, UPS5,Server_Power,
Cooling_Power)
fields terminated by ',' lines terminated by '\n'
set Dateformat=str_to_date(Date, '%m/%d/%Y' '%H:%i:%s');
ERROR 1064 (42000):您的 SQL 语法有错误;检查与您的 MySQL 服务器版本相对应的手册,以获取正确的语法,以在 'fields terminate by ',' 行附近使用 '\n'set Dateformat=str_to_date(Date' at line 1
我不知道错误在哪里!谁能帮帮我?
【问题讨论】:
-
我有 mysql 5.0 。支持我应该下载哪一个的set子句