select id,
(case when id1=0 then '实' else '虚' end),
.......
from tablename