Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Hilfe bei Umwandlung eines [Oracle] Statements zu [MSSQL]

Empfohlene Antworten

Veröffentlicht

Hallo,

ich bin leider nich so fit was Oracle angeht. Und wollte fragen ob mir jemand beim Umwandel von folgendem Statement helfen kann.

Oracle Statement:


is

x integer;

begin

for xrec in (select * from tabelle1) loop

select count(*) into x from tabelle2 o

where o.Name = xrec.Name AND

o.KNTNR = xrec.KNTNR;


if x > 0 then

update tabelle2 o set

o.Name = xrec.Name,

o.KNTNR = xrec.KNTNR

where o.Name = xrec.Name AND

o.KNTNR = xrec.KNTNR;


else


insert into Tabelle2 select * from Tabelle1 o

where o.Name = xrec.Name AND

o.KNTNR = xrec.KNTNR;


end if;


end loop;


end;

das sollte dann in MSSQL als Stored Procedure gespeichert werden:

CREATE PROCEDURE test

AS

declare @x int 

BEGIN

For ?????


END

Ich steh hier grad voll auf dem Schlauch. Wenn mir jemand helfen könnte würde ich mich super freuen ;) .

Lg

Gateway

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.