Hi,
I am trying to create a dynamic scrollable cursor. I am getting some sort of error. can some one plz let me know what I am missing here
DECLARE cur1 SENSITIVE DYNAMIC SCROLL CURSOR WITH RETURN for
select cst.OWNER DB_NAME,cst.TBNAME TABLE_NAME,total_columns as max_columns
FROM YEW as cst, YEN_c1 as cstc
WHERE COALESCE(truncate_flag, 'N') = 'N'
and cst.owner = cstc.owner
and cst.mt_name = cstc.mt_name
and cstc.total_rows > 0
order by 1, 2 ;
ERROR:
An unexpected token "<space>" was found following "cur1". Expected tokens may include: "SENSITIVE".. SQLCODE=-104, SQLSTATE=42601, DRIVER=4.17.30
An unexpected token "<space>" was found following "cur1". Expected tokens may include: "SENSITIVE".. SQLCODE=-104, SQLSTATE=42601, DRIVE
I am trying to create a dynamic scrollable cursor. I am getting some sort of error. can some one plz let me know what I am missing here
DECLARE cur1 SENSITIVE DYNAMIC SCROLL CURSOR WITH RETURN for
select cst.OWNER DB_NAME,cst.TBNAME TABLE_NAME,total_columns as max_columns
FROM YEW as cst, YEN_c1 as cstc
WHERE COALESCE(truncate_flag, 'N') = 'N'
and cst.owner = cstc.owner
and cst.mt_name = cstc.mt_name
and cstc.total_rows > 0
order by 1, 2 ;
ERROR:
An unexpected token "<space>" was found following "cur1". Expected tokens may include: "SENSITIVE".. SQLCODE=-104, SQLSTATE=42601, DRIVER=4.17.30
An unexpected token "<space>" was found following "cur1". Expected tokens may include: "SENSITIVE".. SQLCODE=-104, SQLSTATE=42601, DRIVE