0

I have a query like

select
  case
      when foo >  0 then 
         'Bar / ' + N'Бар: ' + ' blah blah'
      else 
         'Text / ' + N'текст' + ' blah blah'
  end as 'Baz'

Is there a way to have 'Бар: ' and 'текст' outputted in a different colour? HTML formatting is not a solution as it needs to output into a non-HTML document

2
  • 6
    SQL doesn't knows anything about text formating, colors, HTML or anything. Such changes should be done client-side. Commented Jul 20, 2018 at 13:19
  • That what I was afraid of - just needed to get it confirmed :) Thx Commented Jul 20, 2018 at 13:32

1 Answer 1

0

No, there isn't.

SQL is not about formatting, but about storing and retrieving data efficiently and safely.

Use your front-end (the program that receives the data) to show it (render it) as you see fit.

Sign up to request clarification or add additional context in comments.

1 Comment

That what I was afraid of - just needed to get it confirmed :) Thx

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.