licungeng 2022-08-19 11:17 采纳率: 50%
浏览 19
已结题

必须声明标识符 'VARCHER2'怎么修改


create or replace function ch_height_pm(in_cid in number, in_name in varcher2) return number is

  pm number;
  ch_height number;
begin
  select c.height into ch_height from children c 
         where c.cid=in_cid and in_name=c.name;
  select count(1) into pm from children c
         where c.cid=in_cid and in_name=c.name and c.height>ch_height;
  pm:=pm+1;
  
  return(pm);
  exception
    when no_data_found  then
     dbms_output.put_line('该学生的身高:'||p_in_courseid|| '的学生表中找不到');
end ch_height_pm;

FUNCTION SYS.CH_HEIGHT_PM 编译错误

错误:PLS-00201: 必须声明标识符 'VARCHER2'
行:1
文本:create or replace function ch_height_pm(in_cid in number, in_name in varcher2) return number is

错误:PL/SQL: Compilation unit analysis terminated
行:1
文本:create or replace function ch_height_pm(in_cid in number, in_name in varcher2) return number is

  • 写回答

1条回答 默认 最新

  • 於黾 2022-08-19 11:19
    关注

    VARCHAR2
    单词拼错了

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 8月27日
  • 已采纳回答 8月19日
  • 创建了问题 8月19日

悬赏问题

  • ¥15 matlab数据降噪处理,提高数据的可信度,确保峰值信号的不损失?
  • ¥15 怎么看我在bios每次修改的日志
  • ¥15 python+mysql图书管理系统
  • ¥15 Questasim Error: (vcom-13)
  • ¥15 船舶旋回实验matlab
  • ¥30 SQL 数组,游标,递归覆盖原值
  • ¥15 为什么我的数据接收的那么慢呀有没有完整的 hal 库并 代码呀有的话能不能发我一份并且我用 printf 函数显示处理之后的数据,用 debug 就不能运行了呢
  • ¥20 gitlab 中文路径,无法下载
  • ¥15 用动态规划算法均分纸牌
  • ¥30 udp socket,bind 0.0.0.0 ,如何自动选取用户访问的服务器IP来回复数据