首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > oracle >

pl/sql生手求教,函数创建出错,pls-00103

2012-11-07 
pl/sql新手求教,函数创建出错,pls-00103SQL codecreate or replace function f_bookstatue (f_bno in numb

pl/sql新手求教,函数创建出错,pls-00103

SQL code
create or replace function f_bookstatue (f_bno in number) return char(4)  is  f_statue char(4) ;begin  select statue into f_statue from books where bno=f_bno;  return(f_statue);end ;



FUNCTION F_BOOKSTATUE 编译错误

错误:PLS-00103: 出现符号 "("在需要下列之一时:
  ; is authid as cluster order
  using external varying character large deterministic
  parallel_enable pipelined aggregate result_cache
行:1
文本:create or replace function f_bookstatue (f_bno in number) return char(4) is

刚接触pl/sql,尝试为表添加一些函数,对于此类错误应该如何解决?求教。

[解决办法]
return char(4) is
这里改成return char is

热点排行