By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,197 Members | 974 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,197 IT Pros & Developers. It's quick & easy.

Simple SQL to display text

P: n/a
I was wondering - is there some part of sql that can display text?
I wanted to add simple instruictions to the beginning of an sql script
so the user understands what they're entering into the '&value' entry
of the SELECT portion of the script.

I know that anything with REM in the beginning is simply ignored.

Thanks for your help.
Jul 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a

"Joe Christl" <jc******@zdnetmail.com> wrote in message
news:e9**************************@posting.google.c om...
| I was wondering - is there some part of sql that can display text?
| I wanted to add simple instruictions to the beginning of an sql script
| so the user understands what they're entering into the '&value' entry
| of the SELECT portion of the script.
|
| I know that anything with REM in the beginning is simply ignored.
|
| Thanks for your help.

Not SQL, you're actually asking about SQL*Plus (Oracle very basic UI tool)

PROMPT for one line

DOC for multiple lines (terminate with #) -- or use a c-style multiple line
comment (equivalent of DOC...#)
lots more good stuff in the SQL*Plus manual! -- you might also want to check
out the ACCEPT statement

;-{ mcs

Jul 19 '05 #2

P: n/a
jc******@zdnetmail.com (Joe Christl) wrote in message news:<e9**************************@posting.google. com>...
I was wondering - is there some part of sql that can display text?
I wanted to add simple instruictions to the beginning of an sql script
so the user understands what they're entering into the '&value' entry
of the SELECT portion of the script.

I know that anything with REM in the beginning is simply ignored.

Thanks for your help.


If the front-end tool is SQLPlus then look up the prompt command in
the SQLPlus manual. You may also want to look at the accept
statements. Prompt and accept can be combined to ask for and get an
SQLPlus label variable.

HTH -- Mark D Powell --
Jul 19 '05 #3

P: n/a
Yes SQLPlus was what I was talking about.
PROMPT, DOC, & ACCEPT

Thanks Mark and Mark. :)
Jul 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.