简体   繁体   中英

What is the equivalent of   in SQL Server?

SPACE() function of SQL Server works in SQL but when select query comes to browser white space is collapsed. What is the correct representation for   in SQL so that white space is kept in the browser?

Usually you do not want to do that kind of manipulation in the SQL query ; it is cleaner to let your web application format the data properly before outputing it to the user (the real solution for that dependends on the software language you use in your web app).

But of you really want to do that in SQL, just replace the SPACE() function in your sql query with ' ' , and it should appear just like that in the query result...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM