PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : SQL Plus: Wie PL/SQL editieren - z.B. Prozedur


Gast
2008-01-25, 21:24:40
Hallo

Gibt es eine Möglichkeit in SQL Plus irgendwie seine PL/SQL eingaben zu editieren, wenn man sich vertippt hat oder einen Fehler gebaut hat?

Mit Copy/Pace alles zu ersetzen ist irgendwie umständlich.

Gast
2008-01-25, 21:37:33
Bin fündig geworden. Verstehe aber nicht wie "Change" funktioniert:


Line Editing

One way to change an SQL statement in the buffer is by using the line editor. The following are a list of line edit commands.
LIST or L--Lists the contents of the buffer
LIST n or L n--Lists the contents of line number n in the buffer and makes the line current
LIST * or L *--Lists the current line
LIST m n--Lists the range from m to n line
Append text or A text--Adds to the end of the current line (e.g., "A ," adds a comma to the end of line
INPUT or I--Adds one or more lines after the current line so you can begin adding the text.
CHANGE /text--Deletes text from the current line
CHANGE /oldtext/newtext--Replaces oldtext with newtext in the current line
DEL -- Deletes the current line

Sephiroth
2008-01-25, 22:59:05
http://www.m-software.de/sql-plus-CHANGE.html

also du willst z.B. "FALSCH" durch "RICHTIG ersetzen:
C /FALSCH/RICHTIG/

Mehr ist es nicht. Statt das / kannst du auch ein anderes Trennzeichen wie @ nehmen