Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

javacc encountered * was expecting from

940740May 31 2012 — edited May 31 2012
Hi,

I have the following
CreateView()
{
<CREATE> <VIEW> name = Get_DB_Name() <FROM> selectQuery = SelectStmt()
}

where
SelectStmt()
{
<SELECT> <MULT> <FROM> <DATABASE> <WHERE> <RESULT> <SATISFIES> <CONDITION> <SC>
}

Now when I give the input as "select * from database where result satisfies condition;" it gives me the correct output.

But when I give the input as "create view c:\neha from select * from database where result satisfies condition;", It gives me the following error

Main : Encountered "*" at line 1, column 33.
Was expecting:
<FROM> ...

What could be the possible error?

Thanks,
Neha
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 28 2012
Added on May 31 2012
2 comments
213 views