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.

String mit Blanks auffüllen

Empfohlene Antworten

Veröffentlicht

Morgens

Ich arbeite mit Oracle 10g.

Ich will eine Abfrage in eine TXT spoolen. Aber wenn man sich die Txt ansieh, ist da natürlich keine Formatierung, also hab ich mir einen kleinen Algo geschrieben der bis zu einer bestimmten Stelle mir eine Anzahl an Leerzeichen ausgibt, damit es etwas hübscher aussieht.

Bsp:

momentan: 1)abc Hunde Kuchen

Ziel: 1) abc_____________Hunde__________Kuchen

(___ = Leerzeichen)

Alles klar?? Und nun frag ich mich wie man es der DB püer PL/SQL beibringen kann dass er Leerzeichen schreiben?! Da fällt mir nämlich nix zu ein....

Also wenn jemand ne Idee hat...

THX

Ich arbeite mit Oracle 10g.

ok, und arbeitest du mit dbms_output? *rate*

wie bringst du die abfrage in den ausgabepuffer?

ich würde gelich mit tabulatoren arbeiten:

DECLARE

TAB constant varchar2(1):=CHR(9);

CURSOR curs_tab is

select bli,bla,blu

from tabelle

order by schasquastl;

BEGIN

OPEN curs_tab;

dbms_output.put_line('hier mein bli'||TAB||'da mein bla'||TAB||'dort mein blu');

LOOP

FETCH curs_tab INTO v_tab;

exit when curs_tab%notfound;

dbms_output.put_line(bli||TAB||bla||TAB||blu);

END LOOP;

END;

s'Amstel

RPAD() und/oder LPAD() füllt strings auf.

-j

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.