MikeM670
asked on
Format Output of Select Statement
MS SQL 2014
Is it possible to format the output from a select statement?
Below is a simple select of the LastName field. I want the results to be displayed with the underline.
Last Name
Select LastName as 'Last Name'
From mydatabase
The end result of the query will be displayed in a browser.
Is it possible to format the output from a select statement?
Below is a simple select of the LastName field. I want the results to be displayed with the underline.
Last Name
Select LastName as 'Last Name'
From mydatabase
The end result of the query will be displayed in a browser.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Your answer pointed me in the right directions.
This works for me.
select nm.PersonID as '<p style="font-weight: bold; text-decoration: underline;">Person ID</p>',