select concat('select ',group_concat(case when column_name in('id','hot') then null else column_name end),' from city;') from information_schema.columns where table_schema='email' and table_name='city';
以上得出來的是一個sql語句,排除了id,hot ,僅僅是得出了sql語句,然后再執行才會得到數據;其實這個看起來算是一個然並卵的東西,記錄一下知道有這么個東西。