oracle有Boolean类型

来源:互联网 发布:nginx rtmp 直播配置 编辑:程序博客网 时间:2024/04/19 16:19

http://topic.csdn.net/t/20040919/20/3388579.html

oracel的pl/sql有:

You   use   the   BOOLEAN   datatype   to   store   the   logical   values   TRUE,   FALSE,   and   NULL
(which   stands   for   a   missing,   unknown,   or   inapplicable   value).   Only   logic   operations   are   allowed   on   BOOLEAN   variables.

The   BOOLEAN   datatype   takes   no   parameters.   Only   the   values   TRUE,   FALSE,   and
NULL   can   be   assigned   to   a   BOOLEAN   variable.   You   cannot   insert   the   values   TRUE
and   FALSE   into   a   database   column.   Also,   you   cannot   select   or   fetch   column   values
into   a   BOOLEAN   variable.

oracel的sql没有。

 

=========

PL/SQL中是有Boolean类型的,只能取2个值:true和false;不过,Boolean类型在ORACLE内部也是用INTEGER模拟的。

这个是8i中的定义
type   BOOLEAN   is   (FALSE,   TRUE);

 

==============

存储过程中的变量可以是boolean型,但数据类型没有!

原创粉丝点击