I have a SQL statement that returns a field, is there a way to at the end of that field to return a percentage sign at the end.
Example:
Select percentage from Customer WHERE percentage > 10;
Is there a way for the output instead of being
11
12
15
To be
11 %
12 %
15 %
NB It seems to be causing allot of confusion, but I am using Access 2010. Thanks
Select convert(varchar,percentage) + ' %' from Customer WHERE percentage > 10;
那应该为您解决问题。
尝试
SELECT [percentage] & " %" AS Expr1 FROM [Customer] WHERE [percentage] > 10;
Select percentage || '%' from Customer WHERE percentage > 10;
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.