摘要:
比如有下面三张表,用With as 、Group By语法解决几个问题; with as : 可以用来创建临时表,作为过度的表; group by: 按照某个字段来分类; 对应字段如下: Sales empNo salDate City Client sal emp empNo ename visi 阅读全文
摘要:
Oraclec创建函数的语法规则 create or replace function 函数名 (参数名1 参数类型,参数名2 参数类型) return number is Result number ; begin return (Result); end; 例子 : 根据工号返回城市的函数 调用 阅读全文
摘要:
Oracle复制表分为只复制表结构或者结构和数据均复制两种: 只复制表结构 create table newTableName as select * from oldTableName where 1=2; 复制表的结构和数据 create table newTableName as select 阅读全文