我已经成功地将数据从MySQL加载到MemSQL v6.0-beta中
CREATE TABLE ashareeodprices (
OBJECT_ID varchar(38),
S_INFO_WINDCODE varchar(40),
TRADE_DT varchar(8),
CRNCY_CODE varchar(10),
S_DQ_PRECLOSE double,
S_DQ_OPEN double,
S_DQ_HIGH double,
S_DQ_LOW double,
S_DQ_CLOSE double,
S_DQ_CHANGE double,
S_DQ_PCTCHANGE double,
S_DQ_VOLUME double,
S_DQ_AMOUNT double,
S_DQ_ADJPRECLOSE double,
S_DQ_ADJOPEN double,
S_DQ_ADJHIGH double,
S_DQ_ADJLOW double,
S_DQ_ADJCLOSE double,
S_DQ_ADJFACTOR double,
S_DQ_AVGPRICE double,
S_DQ_TRADESTATUS varchar(10),
OPDATE datetime,
OPMODE varchar(1)
)
和
LOAD DATA INFILE '/ashareeodprices.csv' INTO TABLE ashareeodprices
FIELDS TERMINATED BY ';'
LINES TERMINATED BY '\n'
然后
SELECT * FROM ashareeodprices;
SELECT * FROM ashareeodprices WHERE S_DQ_LOW=0;
这些SQL语句在MySQL和MemSQL中都可以正常工作。但在这种情况下它没有。
SELECT * FROM ashareeodprices WHERE S_INFO_WINDCODE='600031.SH';
在MySQL中可行。在MemSQL中它返回
Empty set
我认为问题在于编码。有什么问题' 600031.SH'?