Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prompt in freehand Sql

Status
Not open for further replies.

nickty

MIS
May 25, 2001
23
GB
I am new to BO. I am amending some reports in BO which were created using freehand sql. I need to include a prompt in the report.

At the top of the sql statement i am typing

accept dept prompt 'Enter dept:'

then the select statement

then....

and a_dept_code = '&&dept'

BUT BO throws up an error saying 'The only authorised sql statement is select'

Can anyone help me please??
 
Hi Nicty
You have written the prompt using SQL*Plus syntax.
Rewrite it like this
select statement

then....

and a_dept_code = @Prompt('Enter dept',,,,)

Note I have typed 4 commas after the text, it will work as is but review the BO doc for tips to how these are used





 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top