表MyTable中有这样的记录
RecoTime SlabID
20110718 1604688011010
20110719 1603688011010
要从表中选出列SlabID中第4位为4的所有行(如20110718 1604688011010)
SQL语句怎么写呢?
------解决方案--------------------------------------------------------
select * from MyTable where substr(slabid,4,1)='4'