level 1
懒虫尾生
楼主
SELECT * FROM tobj where
fiel0 = "field10"
OR fiel1 = "field10"
OR fiel2 = "field10"
OR fiel3 = "field10"
OR fiel4 = "field10"
OR fiel5 = "field10"
OR fiel6 = "field10"
OR fiel7 = "field10"
OR fiel8 = "field10"
OR fiel9 = "field10"
查询的语句如上,表的结构无法更改,需要准确查询而非模糊查询
求高手对语句缩写一下,查询条件唯一,只需要这十个字段之一相等就可返回。
2019年01月21日 09点01分
1
fiel0 = "field10"
OR fiel1 = "field10"
OR fiel2 = "field10"
OR fiel3 = "field10"
OR fiel4 = "field10"
OR fiel5 = "field10"
OR fiel6 = "field10"
OR fiel7 = "field10"
OR fiel8 = "field10"
OR fiel9 = "field10"
查询的语句如上,表的结构无法更改,需要准确查询而非模糊查询
求高手对语句缩写一下,查询条件唯一,只需要这十个字段之一相等就可返回。