太傻巫启贤虾米音乐:如何在access中同时查询两个或两个以上的关键词

来源:百度文库 编辑:高校问答 时间:2024/05/05 20:15:31

条件可以用逻辑运算符连接.

and or not

select 1 from biao where A=1 and A>10 (查找A=1并且A>10的)

select 1 from biao where A=1 or A>10 (查找A=1或者A>10的)

select 1 from biao where not A=1 (查找A不等于1的.)

select * from [Table]
where
content like '%a%' and content like '%b%'..........
如果有一个关键词就可以的话就把and换成or

在对象选项里,用查询创建一个向导