I am trying to print a tab in sql server using:
select 'tab-->' + char(9) + '<--tab'
But it doesn't seem to work and always prints
tab--> <--tab
Is there any thing I am missing?
Use the SQL tab to create an SQL WHERE clause to handle selection criteria that are more complex than can be defined on the Selection Criteria tab. For example, to select the appropriate set of data for a table, you might need a combination of AND and OR logical operators.
If you're testing this inside of Management Studio, the Results to Grid
(Ctrl + D) setting will change your tab to a space... try switching to Results to Text
(Ctrl + T) instead, and you will see the tab.
Alternately, you can change your select
to a print
:
print 'tab-->' + char(9) + '<--tab'
Outputs...
tab--> <--tab
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With