[英]FIND_IN_SET in mysql
Hey, I just want to know if it's ok to do this: 嘿,我只想知道是否可以这样做:
SELECT * FROM `table1` WHERE FIND_IN_SET("value1", `field1`)
as opposed to this: 与此相反:
SELECT * FROM `table1` WHERE FIND_IN_SET("value1", `field1`) > 0
Yes, that's fine. 是的,没关系。 If it finds the value, then the result will be greater than 0, which MySQL will interpret as TRUE. 如果找到该值,则结果将大于0,MySQL将其解释为TRUE。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.