首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

多条件查询Access的SQL语句,该如何处理

2013-11-23 
多条件查询Access的SQL语句Sql @select * from [数据表] where fileName like %A% and fileName like

多条件查询Access的SQL语句

Sql = @"select * from [数据表] where fileName like '%A%' and fileName like '%b%' and fileType='.pdf' or fileType='.xls';
我想查找文件名中含有字母A和b的,后缀名为.pdf或者.xls的,上面的写法是错误的,请帮忙给个正确的写法 多条件查询语句
[解决办法]
where (fileName like '%A%' and fileName like '%b%') and (fileType='.pdf' or fileType='.xls')
加上括号

热点排行