August 23, 2012 at 12:00 am
declare
type v_arr is varray(10) of varchar empy.ename%type
x_arr v_arr=v_arr()
begin
x_arr.extend
x_arr(1)='hello'
for i in 1..x_arr loop
if(x_arr<=97 and x_arr>=122) then
x_arr=x_arr-32
end if
end loop
end
expecting output:
HELLO
but the code showing error of:
Server: Msg 155, Level 15, State 2, Line 2
'v_arr' is not a recognized CURSOR option.
Server: Msg 156, Level 15, State 1, Line 8
Incorrect syntax near the keyword 'then'.
what is the code ?????
August 23, 2012 at 1:59 am
What language is this that you are coding in?
August 23, 2012 at 3:41 am
oracle plsql using on ms sql
August 23, 2012 at 3:46 am
Well you will need to change the PLSQL into T-SQL, but is there a reason you cant just use the UPPER function?
SELECT UPPER('hello')
September 7, 2012 at 8:21 pm
anthony.green (8/23/2012)
Well you will need to change the PLSQL into T-SQL, but is there a reason you cant just use the UPPER function?SELECT UPPER('hello')
At least he didn't try to write a CLR to do it.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy