早教吧 育儿知识 作业答案 考试题库 百科 知识分享

declarevcntNumber;beginSELECTcount(*)FROMUSERTABCOLUMNSWHERETABLENAME='USERINFO'ANDCOLUMNNAMEin(upper('userid'),'UNAME','UAGE','UBIRTHDAY','UREMARK');ifvcnt

题目详情
declare v_cnt Number;
begin
SELECT count(*) FROM USER_TAB_COLUMNS
WHERE TABLE_NAME = 'USERINFO' AND COLUMN_NAME in (upper('userid'),'UNAME','UAGE','UBIRTHDAY','UREMARK');
if v_cnt
▼优质解答
答案和解析
结尾end后要分号,你没写
begin后那句,select count(*) into v_cnt..