0
嘿,我只是想知道它是否可以做到這一點:FIND_IN_SET在MySQL
SELECT * FROM `table1` WHERE FIND_IN_SET("value1", `field1`)
與此相反:
SELECT * FROM `table1` WHERE FIND_IN_SET("value1", `field1`) > 0
嘿,我只是想知道它是否可以做到這一點:FIND_IN_SET在MySQL
SELECT * FROM `table1` WHERE FIND_IN_SET("value1", `field1`)
與此相反:
SELECT * FROM `table1` WHERE FIND_IN_SET("value1", `field1`) > 0
是的,這很好。如果它找到該值,那麼結果將大於0,MySQL將解釋爲TRUE。