打印本文 打印本文 关闭窗口 关闭窗口
神秘的DUAL
作者:武汉SEO闵涛  文章来源:敏韬网  点击数1823  更新时间:2009/4/22 23:22:04  文章录入:mintao  责任编辑:mintao
and keep is:  DUAL table should always

have 1 ROW.  Dual is a normal table with one dummy column of varchar2(1).

This is basically used from several applications as a pseudo table for

getting results from a select statement that use functions like sysdate or other

prebuilt or application functions.  If DUAL has no rows at all some applications

(that use DUAL) may fail with NO_DATA_FOUND exception.  If DUAL has more than 1

row then applications (that use DUAL) may fail with TOO_MANY_ROWS exception.  

So DUAL should ALWAYS have 1 and only 1 row

 

 

 

上一页  [1] [2] 

打印本文 打印本文 关闭窗口 关闭窗口