Oracl 常用函数.docVIP

  • 2
  • 0
  • 约2.77万字
  • 约 7页
  • 2016-12-14 发布于河南
  • 举报
在SQLPLUS下,实现中-英字符集转换 alter session set nls_language=AMERICAN; alter session set nls_language=SIMPLIFIED CHINESE; 主要知识点: 一、有关表的操作 1)建表 create table test as select * from dept; --从已知表复制数据和结构 create table test as select * from dept where 1=2; --从已知表复制结构但不包括数据 2)插入数据: insert into test select * from dept; 二、运算符 算术运算符:+ - * / 可以在select 语句中使用 连接运算符:|| select deptno|| dname from dept; 比较运算符: = = != = like between is null in 逻辑运算符:not and or 集合运算符: intersect ,union, union all, minus 要求:对应集合的列数和数据类型相同 查询中不能包含long 列 列的标签是第一个集合的标签 使用order by时,必须使用位置序号,不能使用列名 例:集合运算符的使用: intersect ,union, union all,

文档评论(0)

1亿VIP精品文档

相关文档