Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How do you load unique records into one target table and duplicate records into a different target table?

1314


What is a mapplet/worklet in informatica?

1244


What is depict expression change?

1192


How are the sources and targets definitions imported in informatica designer?

1170


How do you use reject loader.

2648


how can we find the bottle neck in SQL Query in SOURCE QUALIFIER, and how can we tune it..?

7176


What is native users?

1222


What is InformaticaPowerCenter?

1177


Define pmcmd command?

1104


Explain dynamic target flat file name generation in informatica

1109


What are the measure objects?

1255


Which is the t/r that builts only single cache memory?

1237


Explain load alternative records / rows into multiple targets - informatica

1203


What is the meaning of decode in informatica?

1164


Explain sessions. Explain how batches are used to combine executions?

1078