Chinaunix首页 | 论坛 | 博客
  • 博客访问: 262986
  • 博文数量: 47
  • 博客积分: 1516
  • 博客等级: 上尉
  • 技术积分: 507
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-29 09:23
文章分类

全部博文(47)

文章存档

2009年(1)

2008年(3)

2007年(1)

2006年(36)

2005年(6)

分类: Oracle

2006-02-27 16:26:25

1)   连接号:||

把两个字符连接起来

select game_card_type_id||name from game_card_type;

3)   select distinct dept_id,title from emp: 对多个字段的唯一

4)   order by desc(降序)

order by asc(升序)

5)   where column is (not) null

6)   like ‘_a%’   _表示一个字符。%表示多少字符

like ‘%x\_y%’ escape ‘\’:显示包括x_y的字符

7)   where table1.column(+)=table2.column

place the operator on the side of the join where there is no value to join to.

    8) 联接类型:

equijoin:等式查询

non_equijoin:不等式查询

self:自己和自己建立关联

out join:where a.column=b.column(+)

可以用的操作符是:’=’’and’,不可以用’or’’in’

    9)  COUNT 函数所用的列包含空值时,空值行被忽略。

10)  where 后的in any all 的区别

in :等于子查询的任何一个数

any :与子查询的每一个值相比

只要比其中一个大(小)就可以了

all:与子查询的所有值相比要比所有的的都大(小)

   !=ALL作用跟NOT IN 一样

阅读(1942) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~