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.

Oracle clob verleichen????

Empfohlene Antworten

Saluez,

ich habe ein kleines Problem.

Ich soll aus einer bestimmten Bibliothek anhand der ISBN ein bestimmtes Buch finden, das es in anderen (ausgewählten) Bibliotheken auch gibt. Die ISBN steht leider in einem clob. Ein "in" funktioniert nicht, auch bei einem "=" bekomme ich die Fehlermeldung

ORA-00932: inconsistent datatypes: expected - got CLOB

Vielleicht hat einer von euch eine Idee:


SELECT DISTINCT "B"."ID",

                "B"."BibID"

FROM  "****"."Book" "B", "****"."BookValues" "BV"

WHERE "B"."ID" = 101

  AND "BV"."Value" = (SELECT dbms_lob.substr("Value",1200)

                      FROM   "****"."BookValues"

                      WHERE  "BookID" = 101);

(Das war der zweite Versuch nur mal ein Buch zu finden, der erste [der mit dem "in"] hat auch nicht funktioniert.)

Schon mal thnx im vorraus!

Hallo Yakuzza,

irgendwie versteh ich dein Problem noch nicht so richtig bzw. vielleicht könntest du auch mal deine Tabellen "book" und "bookvalues" näher erläutern.

Gruss, Axl

Saluez,

konnte mein Problem inzwischen lösen. Da ich mich mit Oracle nicht so gut auskenne, war mir nicht bekannt, dass man einen clob mit "to_Char" konvertieren und dann vergleichen "=" oder ein "in" anwenden kann.

Trotzdem Danke für die Antwort

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

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.