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.

Zeichenkettenverknüpfung in PL/SQL

Empfohlene Antworten

Veröffentlicht

Hi,

da ich mich in letzter Zeit verstärkt mit Oracle beschäftige kam ich natürlich nicht an PL/SQL vorbei.

Bei Erstellen einer Trigger-Routine stellte sich mir allerdings folgende Frage:

Ist es möglich einen Variable vom Typ VARCHAR mit einer Variable gleichen Typs zu verknüpfen??

Beispielsource:

TRIGGER xyv .....

(sAction VARCHAR)

IS

DECLARE

sData VARCHAR(30) := :new.pin;

BEGIN

.

.

.

END;

END;

Ist es irgendwie möglich die Variablen sAction und sData miteinander zu verknüpfen??? (Bsp.: aus "INSERT" und "12234" wird "INSERT12345")

Danke schon mal im vorraus

Verschoben ins Datenbank-Forum.....

klar geht das:

var1 := 'ABC':

var2 := '123';

newvar := var1 || var2;

DBMS_OUTPUT.enable;

DBMS_OUTPUT.PUT_LINE(newvar);

und deine SQL session gibt folgendes aus:

ABC123

viel spaß damit

alles klar.

Funzt jetzt.

THX :))

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.