上一页 1 ··· 6 7 8 9 10
摘要: 1.ascii 作用: 返回指定的字符对应的十进制数 select ascii('A') ,ascii('a'),ascii(' ') from dual; 2.chr 作用:给出整数,返回对应的字符 select chr(65) ,chr(54780) from dual; 3.concat 作用 阅读全文
posted @ 2016-05-20 11:33 Blue眼泪2016 阅读(633) 评论(0) 推荐(0) 编辑
摘要: 比如有下面三张表,用With as 、Group By语法解决几个问题; with as : 可以用来创建临时表,作为过度的表; group by: 按照某个字段来分类; 对应字段如下: Sales empNo salDate City Client sal emp empNo ename visi 阅读全文
posted @ 2016-05-18 17:25 Blue眼泪2016 阅读(1408) 评论(0) 推荐(0) 编辑
摘要: Oraclec创建函数的语法规则 create or replace function 函数名 (参数名1 参数类型,参数名2 参数类型) return number is Result number ; begin return (Result); end; 例子 : 根据工号返回城市的函数 调用 阅读全文
posted @ 2016-05-18 17:24 Blue眼泪2016 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 输出结果: 结果: 执行结果: 这样一个带有执行块的和异常的存储过程就创建完整了。 标识符 命名规则 例子 程序变量 V_name V_name 程序常量 C_Name C_Name 游标变量 Name_cursor Emp_cursor 异常标识 E_name E_too_many 表类型 Nam 阅读全文
posted @ 2016-05-18 17:22 Blue眼泪2016 阅读(2932) 评论(0) 推荐(0) 编辑
摘要: Oracle复制表分为只复制表结构或者结构和数据均复制两种: 只复制表结构 create table newTableName as select * from oldTableName where 1=2; 复制表的结构和数据 create table newTableName as select 阅读全文
posted @ 2016-05-13 10:48 Blue眼泪2016 阅读(649) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10