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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Oracle- SELECT statement

Status
Not open for further replies.

drkestrel

MIS
Sep 25, 2000
439
GB
With some other DB, something like
Code:
SELECT 'something'
would output the word something into server buffer.

This is not allowed in Oralce. Is it true I could use something like
Code:
SELECT something INTO ACONSTANT
to do this? If so, what's the constant.

I would rather not use
Code:
dbms_output.put_line()
as it makes the buffer rather ugly!
 
That's Cool :)

Code:
Select 'value' from Dual;
returns

'VALU
-----
value

One more tiny cosmetic thing though, can I get rid of the Column heading??
Code:
Column 'value' heading '';
doesn't work!
 
before your select statement write

set heading off ( I don't think a ; is required)

This will turn off the printing of column headings
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top