Friday, February 24, 2012

Inserting Text

Could someone help me, please?

How do I insert text, something like a header, before the result of the query presents itself?

I want the text to appear before the result. Not like an alias, that I know how to do.

Thanks.

SELECT 'This is my Header Message'

SELECT colList FROM MyTable

OR


SELECT
'This is My Header Message',
Col1,
Col2,
etc
FROM MyTable

No comments:

Post a Comment