摘要: ---------数学函数1.绝对值S:select abs(-1) valueO:select abs(-1) value from dual2.取整(大)S:select ceiling(-1.001) valueO:select ceil(-1.001) value from dual3.取整(小)S:select floor(-1.001) valueO:select floor(-1.001) value from dual4.取整(截取)S:select cast(-1.002 as int) valueO:select trunc(-1.002) value from dual5 阅读全文
posted @ 2012-02-28 18:02 JoJomeme 阅读(111) 评论(0) 推荐(0) 编辑
摘要: SELECTCONVERT(varchar(100), GETDATE(), 0): 05 16 2006 10:57AM SELECTCONVERT(varchar(100), GETDATE(), 1): 05/16/06 SELECTCONVERT(varchar(100), GETDATE(), 2): 06.05.16 SELECTCONVERT(varchar(100), GETDATE(), 3): 16/05/06 SELECTCONVERT(varchar(100), GETDATE(), 4): 16.05.06 SELECTCONVERT(varchar(100), GE 阅读全文
posted @ 2012-02-28 17:48 JoJomeme 阅读(162) 评论(0) 推荐(0) 编辑