摘要: 计算两个时间之间的小时差:round(to_number(sysdate-endDate)*24) as QsHour天数:round(to_number(sysdate-endDate)) as QsDay增加字段:alter table table1 add (列名 int); nvl函数相当于sql中的isnull nvl(列,0)如果为null 则给默认值0判断一个表存在不存在,如果不存在 则创建declare i integer; begin select count(*) into i from user_tables where table_name = 'F_INFO& 阅读全文
posted @ 2012-05-29 13:58 依然乐观 阅读(152) 评论(0) 推荐(0) 编辑