my mysql table name products.
How can get data this table.
table shema
id| catid |subcatid
-----------------
1 | 5 | 2,3,5
SELECT * FROM products where subcatid=2
not correct
how can write correct sql.
SELECT * FROM products where find_in_set(2,subcatid)
考虑规范你的表
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.