My sql query is

1. select 1+x from dual?

2. select 1+'x' from Dual?

3. Select x+1 from dual?

what is the out put of the above queries?

Answer Posted / jafar

Hello;
I am not a DBA but I do not think you can use variables like
this. But I ran the SQL and the out put for them was the same:
ORA-00904: "X": invalid identifier
00904. 00000 - "%s: invalid identifier"
*Cause:
*Action:

You can do things like:
Select 1+1 from dual;
Select sysdate from dual
select sysdate - 300 from dual;
select user from dual;

Hope that helps.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is data caches/ index caches?

814


Explain informatica architecture - version 8 / 9

868


What are the mapping parameters and mapping variables?

836


what are 3 tech challenges/ common issues you face?

2115


Why is sorter an active transformation?

881


COM components can be used in Informatica

2097


how to create user defined function (udf) in informatica

1034


What is the format of informatica objects in a repository? What are the databases that informatica can connect to windows?

908


Tell me about your experience in informatica? what is best mark you can give yourself? How to answer this question?

8031


How to delete duplicate row using informatica?

810


What are the popular informatica products?

811


In What Situations we can use MappingParameters ,Mapping Variables AND Session Parameters in REAL TIME.

1768


What are the modules in Power Center

1438


Mention a few design and development best practices for informatica?

753


What is complex mapping?

875