ChinaUnix.net
相关文章推荐:

oracle decode count

sybase 有没有类似oracle decode(字段,值1,翻译值1,值2,翻译值2,缺省翻译值)的函数呢???如果我往一个大表中灌入数据最后又的用update 修改那样的话,特别消耗时间,而且服务器容易死

by 新手上路samson - Sybase - 2004-02-27 18:40:30 阅读(1982) 回复(5)

相关讨论

做报表,需要把数字对应为文字 if(i==1){ select '数字一' }else if(i==2){ select '数字二' }else if(i==3){ select '数字三' } 不想使用两个表联合查询,

by woodpile - Sybase - 2003-12-17 15:21:52 阅读(2780) 回复(3)

In unix command mode, I type this ps command searched for oracle default process then got 10 process, listed below. ora_pmon_mydb ora_dbw0_mydb ora_lgwr_mydb ora_ckpt_mydb ora_smon_mydb ora_reco_mydb ora_cj90_mydb ora_qmn0_mydb ora_s000_mydb ora_d000_mydb can someone tell me what does it count ? thanks

by maulian - Oracle - 2003-12-24 12:57:09 阅读(788) 回复(3)

mysql中有没有与oracledecode功能类似的函数?

by xmfail - MySQL - 2008-10-10 16:17:00 阅读(4151) 回复(6)

insert into t_1 ( c_date ) values ( :dtOneDay ); 希望如果 dtOneDay >; 0 时插入原值, dtOneDay <= 0 时插入 NULL 谢谢!

by ikb - Informix - 2005-05-27 16:39:25 阅读(803) 回复(0)

请问DB2下有类似于oracledecode函数吗?谢谢

by tuitui - DB2 - 2004-05-13 14:32:54 阅读(1290) 回复(1)

我的数据是以日期和部门条件作主键存储的,也就是说: 某1部门在一个月中每天都有一条销售数据,每天的数据是一条记录,然后我要通过一个SQL语句把该月中每天的数据查询出来在一行中进行显示,请问大家这有没有什么好的办法呀? 部门1,2005.08.01,10000.00 部门1,2005.08.02,80000.00 部门1,2005.08.31,45000.00 我要显示的方式是: 部门1, 10000.00,80000.00,...45000.00

by jansonwjl - Sybase - 2005-08-23 23:46:48 阅读(2320) 回复(1)

decode写一个判断语句: 如果字段A=1,字段B!=2,则C就是它的本身值,否则C=0 高手指教。 网上找了一些都是简单的例如: decode('A','1',C,0) 可如何同时满足A和B两个条件就不会了。 先谢了

by sabin541 - Oracle - 2009-08-27 13:09:37 阅读(1389) 回复(3)

InnoDB Row counting using Indexes This is always mentioned that InnoDB is slower in giving results for count(*) as compared to MyISAM. But as Peter points out in his blog that this fact only applies to count(*) queries without WHERE clause. This text is from Peter's blog only - "If you have query like SELECT count(*) FROM IMAGE WHERE USER_ID=5 this query will be executed same way both for M...

by r_a - MySQL文档中心 - 2008-07-18 10:53:40 阅读(1040) 回复(0)

各位,谁知道SELECT count(*) FROM TABLE 返回的值是什么类型?

by crazybaw - Oracle - 2004-11-24 15:45:18 阅读(853) 回复(7)