name = ['alle','mike','tom','jerry','alice','hebe'] for i in name: if i == 'tom': print 'get!' #get! if 'ale'not in name :print 'get!' #get! a = 'tom' b = 'LL' for o in [a,b]: if o == 'll': print "get!" elif o == 'kl': print "get!" els…
比较:>,<,=,>=,<=,<>(!=) 逻辑:AND,OR,NOT 范围:BETWEEN...AND... 范围:IN,NOT IN 判空:IS NULL, IS NOT NULL 模糊:LIKE,NOT LIKE("_"匹配一位字符,"%"匹配任意位字符) 存在:[NOT] EXIST,配合MINUS使用可实现其他很难实现的结果集比较查询 数据区分大小写: 日期范围表示: 判空的两种写法: NOT IN的两种写法: IN范围…