想问一下,下面这个样例没通过,name>=1做了int转字符串,然后用的是内置compare比较方法,结果还是不符合预期,是需要自己调整下?有什么要求呢?
SELECT * FROM Typecast_table_1 WHERE name>=1;
+ 0 | c | 0
+ 1 | a | 11.5
+ 2 | b | 11.5
3 | 1A | 10.5
ID | NAME | AGE
– below are some requests executed before(partial) –
– init
CREATE TABLE Typecast_table_1(id int, name char(4), age float);
CREATE TABLE Typecast_table_2(id int, name char(4), age float);
CREATE TABLE Typecast_table_3(id int, name char(4), age float);
CREATE TABLE Typecast_table_4(id int, name char(4), age float);
INSERT INTO Typecast_table_1 VALUES(‘cc’,‘c’,‘ccc’);
…