我不知道如何选择多列和逗号分隔的列。
我有:
Table: example_tbl
| amount | recurring | frequency |
| 100 | 150 | 8,monthly |
| 200 | 250 | 1,annually |
问题似乎出在频率和逗号上。我试过了:
$q = mysql_query("SELECT amount, recurring FROM example_tbl WHERE id=".$item['relid']." LIMIT 1" AND * FROM example_tbl WHERE FIND_IN_SET ('monthly', frequency));
任何帮助,将不胜感激。