Locate(substring,string)>0 是查找substring在string中能找到的情况 Locate(substring,string)=0是查找substring不在string中的情况,例如,一个用户表中有14条数据,其中有两条为 harry,terry,当条件Locate('rry',user_name)〉0结果为这两条,当条件Locate('rry',user_name)=0时候,结果为出了这两条外的其他12条。
Locate(substring,string)>0 是查找substring在string中能找到的情况 Locate(substring,string)=0是查找substring不在string中的情况,例如,一个用户表中有14条数据,其中有两条为 harry,terry,当条件Locate('rry',user_name)〉0结果为这两条,当条件Locate('rry',user_name)=0时候,结果为出了这两条外的其他12条。