1、select hm,decode(0,"应运商","帐目项"),it_tpye from zlb;
2、同上,用decode函数
2、同上,用decode函数
解决方案 »
- 怎样修改oracle数据库的优化模式
- !!高分求一SQL语句,写成后给再100分!!
- 软件在写操作数据库时不稳定的问题
- Oracle有像SQL Server一样的Online Book么??
- oracle数据备份和恢复问题
- 咨询:关于Oracle9i的问题!
- 请教:新安装的Oracle8i,scott/tiger不能登陆,怎么回事啊?
- 有没有顶级高手,解决一下long字段的查询问题!
- 关于Oracle安装的问题(安装界面为乱码!)解决问题后另夫100分!
- Oracle11G全库导出与导入问题
- 还是在存储过程里调用另外一个存储过程的问题!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- 为什么在我的enterprise manager console 的导航树中没有数据库
from (select * from zlb where sum_type=0) t
union all
select '帐目项' sum_type,name
from (select * from zlb where sum_type=1) s,it_group
where s.it_type=it_group.it_type