Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Code Conversion from MSSQL into Oracle
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
oracle provides a toolkit.
Are there any TOOLs for converting Sample Code (like the following) = from MSSQL into Oracle?
SAMPLE :-
DECLARE @entity_id char(32), @branch_id char(9)
DECLARE cur_temp_GEMT CURSOR FOR select
branch_id,entity_id from GEMT where other_party_name=3D'' and = entity_type=3D'D'
OPEN cur_temp_GEMT =20
=20
FETCH NEXT FROM cur_temp_GEMT INTO
@branch_id,@entity_id
=20
WHILE @@FETCH_STATUS =3D 0 BEGIN UPDATE GEMT SET other_party_name=3D(SELECT name from GEAT where = branch_id =3D_at_branch_id and entity_id=3D_at_entity_id and addr_type=3D'1' = and entity_type=3D'D') where entity_id=3D_at_entity_id and branch_id =3D = @branch_id
FETCH NEXT FROM cur_temp_GEMT INTO
@branch_id,
@entity_id
END CLOSE cur_temp_GEMT
DEALLOCATE cur_temp_GEMT
------=_NextPart_000_0038_01C3C0CF.1A3155F0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; =charset=3Diso-8859-1">
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.emailstyle17 {
COLOR: red; FONT-FAMILY: "Courier New"
}
SPAN.EmailStyle18 {
COLOR: red; FONT-FAMILY: "Courier New"
}
DIV.Section1 {
page: Section1
}
</STYLE> </HEAD> <BODY lang=3DEN-US vLink=3Dpurple link=3Dblue bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>oracle provides a toolkit.</FONT></DIV> <DIV> </DIV> <BLOCKQUOTE dir=3Dltr=20
<DIV><BR></DIV> <DIV class=3DSection1> <P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20style=3D"FONT-SIZE: 12pt"></SPAN></FONT> </P> <P class=3DMsoNormal><FONT face=3D"Courier New" color=3Dred = size=3D2><SPAN=20
cur_temp_GEMT =
</SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Courier New" color=3Dred =
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier =
New'"> =20
</SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Courier New" color=3Dred =
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier =
New'">FETCH NEXT=20
FROM cur_temp_GEMT INTO</SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Courier New" color=3Dred =
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier =
New'"> =20
@branch_id,@entity_id</SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Courier New" color=3Dred =
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier =
New'"> =20
</SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Courier New" color=3Dred =
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier =
New'">WHILE=20
@@FETCH_STATUS =3D 0</SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Courier New" color=3Dred =
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier =
New'"></SPAN></FONT> </P>
<P class=3DMsoNormal><FONT face=3D"Courier New" color=3Dred =
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier =
New'">BEGIN</SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Courier New" color=3Dred =
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier =
New'"></SPAN></FONT> </P>
<P class=3DMsoNormal><FONT face=3D"Courier New" color=3Dred =
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier =
New'"></SPAN></FONT> </P>
<P class=3DMsoNormal><FONT face=3D"Courier New" color=3Dred =
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier =
New'">UPDATE GEMT=20
SET other_party_name=3D(SELECT name from GEAT where branch_id =
=3D_at_branch_id and=20
entity_id=3D_at_entity_id and addr_type=3D'1' and = entity_type=3D'D') where=20 entity_id=3D_at_entity_id and branch_id =3D @branch_id</SPAN></FONT></P><P class=3DMsoNormal><FONT face=3D"Courier New" color=3Dred = size=3D2><SPAN=20
------=_NextPart_000_0038_01C3C0CF.1A3155F0--
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Akshay Kumar INET: akshay349_at_hotmail.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Fri Dec 12 2003 - 15:39:26 CST