我有很多不同的列的表,像SHOW COLUMNS FROM商品WHERE條件,[有列至少一個值]
resolution, brightness, type, width, camera_type, projection_type etc
我需要只有那些列的名稱,這是相關的,說LED電視的建立過濾器, - 這意味着我需要以某種方式
SHOW COLUMNS FROM Goods WHERE category_id = 5 AND [there is at least one value in the column for a row that meets the category_id = 5 condition]
這是可能的嗎?
這將是魯莽的,因爲表中有幾千行 – Dan 2012-03-31 16:17:22