Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> PL-SQL HELP
Hi, all!
Can someone help me convert this lines to ORACLE
PL-SQL:
select @idseq = substring(@nameid,5,1)
if select patindex("%[a-z,A-Z,*,?,!,,,(,)",@idseq) > 0
begin
select "error|incorrect id
return -998
end
else
select @revseq = convert(smallint,@idseq)
What this supposed to accomplish is that it should exit out of the procedure and warn user that the string should not contain non-integer values.
Thanks.