Link to home
Start Free TrialLog in
Avatar of Rupesh Mishra
Rupesh Mishra

asked on

ORA-00923: FROM keyword not found where expected

Hello experts,

Below is working in SQL Server version.
SELECT 'Kevin' FirstName ,'P' LastName , 32 Age
Myproblem is when i am running this in oracle it is giving me
Error(s), warning(s):
ORA-00923: FROM keyword not found where expected
Any help is appreciated.
ASKER CERTIFIED SOLUTION
Avatar of Pawan Kumar
Pawan Kumar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of awking00
Just as an added explanation. Oracle requires that all select statements must have a from clause. The table dual is a table of one column, dummy,and one value, 'X', that make it easy to select literal values. You could also have used SELECT 'Kevin' FirstName ,'P' LastName , 32 Age from any existing table where rownum = 1;