我有以下两个SQL查询:
select *
from table1
where table1.item_no::character varying between '2000' and '3000'
and batch_id = 'new'
和
select *
from table1
where table1.item_no::int between '2000' and '3000'
and batch_id = 'new'
item_no
数据类型是字符变化的。
如何在postgres中合并以上两个SQL查询?