摘要: 1 高级查询、事务、过程、函数 2 3 1. 内置函数。 abs() ——绝对值 ceil() —— 往上取值 floor() —— 往下取值 round()—— 四舍五入 trunc(数据,截取的位数) —— 正数表示小数点后面的位数。反之亦然。 4 5 lower() upper() length() ltrim() rtrim() replace() substr(字符串,开始位置,截取长度) 6 7 转换函数: to_number(字符串,字符串的格式) to_char() --时间类型(to_char(sysdate,'yyyy-mm-dd hh24:mi:ss')) 阅读全文
posted @ 2013-01-17 23:40 全力以赴001 阅读(208) 评论(0) 推荐(0) 编辑
摘要: /* 1. 创建一个表空间。 2. 创建一个用户,设置默认表空间。 3. 给用户授权。 4. 用当前用户登录,创建表、视图、存储过程等。 */ create tablespace systemManagerTablespace datafile 'systemManager.dbf' size 50M;--添加表空间大小 alter tablespace systemManagerTablespace add datafile 'systemManager2.dbf' size 10M;--drop tablespace systemManagerTablesp 阅读全文
posted @ 2013-01-17 23:39 全力以赴001 阅读(223) 评论(0) 推荐(0) 编辑