SubScript in SQL Server Data
I am trying for SQL server data having a subscript.
Below is what 开发者_如何学JAVAi am looking at : Can we add ‘OS’ within brackets in a smaller font like ‘X (OS)’ or ‘(OS)’ where ever applicable in the brand level columns?
Yes, it you use nvarchar and the correct subscript/superscript characters.
DECLARE @test1 nvarchar(100), @test2 varchar(100)
SET @test1 = N'Superx₀x₁x₂x₃x⁶x⁷x⁸xₒ' --OK
SET @test2 = 'Superx₀x₁x₂x₃x⁶x⁷x⁸xₒ' --broken
SELECT @test1, @test2
Edit: as per comment to question: formatting normal chars as subscript is a client problem
精彩评论