select * from databasename where fieldname like '*XX*'
但在SQL SERVER 里是用%表示零个或多个字符
二、如何在ACCESS查询datetime类型字段的日期范围数据
如果字段是时间/日期型,你在进行类似这样的执行 select * from [card] where [datetime] <= '2006-09-20' and [datetime]>='2006-09-01' 在ACCESS中会报错,应该在日期型字段前面加上“#”即: select * from [card] where [datetime] <= #2006-09-20# and [datetime]>=#2006-09-01#