-9

我有一个表,其中包含名为“extension”的列及其 varchar 类型。现在查询 >= 和 <= 未显示准确结果。仅显示最后一个 <= 数字结果..

这是我的查询。

SELECT *,date(calldate) as date,time(calldate) as time FROM data_table
where date(calldate) between '2010-10-01' and '2013-10-01'
and cast(extension as signed) >=00 And cast(extension as signed) >=11111
ORDER BY id asc LIMIT 0 , 50

在执行给定的查询结果时,只有“11111”的扩展名,而不是 00 和 11111 的扩展名。

任何帮助将不胜感激..提前谢谢..

4

1 回答 1

0
cast(extension as signed) <=11111
于 2013-10-26T06:36:04.293 回答