-2
Ich möchte eine temporäre Tabelle erstellen.WITH Klausel - temporäre Tabelle zu erstellen
select * from TFW_ARCHIVETRANSACTION
where TYPE = 'openAccountTransferLifeCycle' and STATUS = 5 and
to_char(substr(
TRANSACTIONDATA,
instr(TRANSACTIONDATA,'<ns:CredentialFunction>') + length('<ns:CredentialFunction>'),
instr(substr(
TRANSACTIONDATA,
instr(TRANSACTIONDATA,'<ns:CredentialFunction>') + length('<ns:CredentialFunction>')
), '</ns:CredentialFunction>') - 1
)) = 'OpenCurrentAccount';
Ich versuche, wie:
with openAccountTransferLifeCycle_c AS (
select * from TFW_ARCHIVETRANSACTION
where TYPE = 'openAccountTransferLifeCycle'and STATUS = 5 and
to_char(substr(
TRANSACTIONDATA,
instr(TRANSACTIONDATA,'<ns:CredentialFunction>') + length('<ns:CredentialFunction>'),
instr(substr(
TRANSACTIONDATA,
instr(TRANSACTIONDATA,'<ns:CredentialFunction>') + length('<ns:CredentialFunction>')
), '</ns:CredentialFunction>') - 1
)) = 'OpenCurrentAccount'
);
aber es funktioniert nicht.
Wo ist falsch?
Bitte verwenden Sie besser Tags zu starten. Sie sollten das [tag: table] -Tag überhaupt nicht verwenden (dies steht in der Beschreibung), und [tag: temporär] bedeutet auch nicht wirklich etwas. Verwenden Sie etwas wie [tag: mysql], wenn Ihre Frage von MySQL oder ähnlich ist; Sonst haben wir keine Ahnung, wovon du sprichst. – deceze
Bitte geben Sie auch an, was genau Sie erreichen möchten. Soll das zweite Snippet eine temporäre Tabelle erstellen? Was sagt Ihnen, dass es "nicht funktioniert"? Haben Sie irgendwelche Fehler ausgegeben? Wie haben Sie das Ergebnis erwartet? Wie sah es aus? – Julian