Announcement

Collapse
No announcement yet.

Konvertierungsproblem

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Konvertierungsproblem

    Hallo Guys,

    ich habe gerade ein kleines Konvertierungsproblem und vielleicht kann mir einer schnell helfen.

    Ich kopiere Daten aus einem Feld A in einem anderem B. Das Feld A hat als Datentyp varchar2 (5), das Feld B number (5, 0). also konvertiere ich mit to_number (Feld A). Byp. 00010 in A wir als 10 in Feld B geschrieben. Mein Problem ist das es weiter 00010 schreiben soll und die 000 nicht weglassen!

    Geht es?

    Grüße!

    vinzi

  • #2
    Geht es?
    Nein. Aber Du kannst mittels to_char(B,'00000') die Ausgabe formatieren.

    Dim
    Zitat Tom Kyte:
    I have a simple philosophy when it comes to the Oracle Database: you can treat it as a black box and just stick data into it, or you can understand how it works and exploit it as a powerful computing environment.

    Comment

    Working...
    X