Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi
I am using oracle database.
In one procedure on condition i need to create view and then use that view.

All queries created and working fine separately.

I am not good in plsql.

Scenario Like:

if (condition)
craete view studentInfo as select * from student;
else
return;
end if;

Problem :

Error shows at line create view that begin needs etc.

Please help.

Thanks in advance.
Posted
Comments
BacchusBeale 29-Jul-14 0:01am    
Use 'create' instead of 'craete' or was that a typo?

1 solution

Please refer the following link.

http://stackoverflow.com/questions/11886321/create-view-must-be-the-only-statement-in-the-batch
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900