% 通配符不适用于数字?

% Wildcard not working with numbers?

我有以下 sqlite 数据库:

BEGIN TRANSACTION;
CREATE TABLE `table1` (
    `Field1`    TEXT
);
INSERT INTO `table1` VALUES ('testing');
INSERT INTO `table1` VALUES ('123');
INSERT INTO `table1` VALUES ('87654');
COMMIT;

这个selectreturns正确的结果:

select * from table1 where Field1 like '%e%';

然而这个returns什么都没有?

select * from table1 where Field1 like '%2%';

SQLite 数据库浏览器中的陌生人:

select * from table1 where CAST(Field1 AS Text) LIKE '%2%'

Returns:

1 Rows returned from: select * from table1 where CAST(Field1 AS Text) LIKE '2%' (took %3ms)

也许是一个错误?删除第一个 %

数据库浏览器中的错误。我提出了一个问题,现在已在晚间修复。