Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Concatenating FROM clause

Concatenating FROM clause

From: NEO <sneo_at_my-deja.com>
Date: Wed, 17 Jan 2001 04:12:22 GMT
Message-ID: <943631$1ml$1@nnrp1.deja.com>

I have a need to combine the FROM and WHERE clauses from one SQL into a new SQL that I am generating in my trigger. I am having some difficulty performing the concatenation. Essentially, I am trying to do the following:
...

sTmp := ' TABLEA A, TABLEB B WHERE A.COL5 = B.COL6;'
...

INSERT INTO MYTABLE SELECT MY_ALIAS.COL1 FROM TABLEA MY_ALIAS, || sTmp

Is it possible to do such concatenations or is there a better approach for this task?

Thanks.

Sent via Deja.com
http://www.deja.com/ Received on Tue Jan 16 2001 - 22:12:22 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US