-
To_date
Hi
I have a problem with cross-impact TO_DATE function and column name.
In table TAB_A is a column with name "TO_DATE" and I would like to use TO_DATE function by selecting from this table in PL/SQL block.
BEGIN
SELECT ..., TO_DATE(NULL,'dd.mm.yyyy'), ... FROM tab_a
UNION ALL
SELECT ..., date_column, ... FROM tab_b;
END;
-- in this case pl/sql compilation failed, because of bad table column using
BEGIN
SELECT ..., STANDARD.TO_DATE(NULL,'dd.mm.yyyy'), ... FROM tab_a
UNION ALL
SELECT ..., date_column, ... FROM tab_b;
END;
-- in this case pl/sql compilation is ok, but when pl/sql is running, the following error is returned -> "invalid column name"
Pls. don't tell me, why i've created a column with that name... I haven't, it has been existed.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|