Is Custom Text supported in Computed columns?
-
22-09-2019 - |
문제
Is there any way of adding custom text in an computed column?
For example this formula works great ([Duration] + '12')
Could i have a result, from a computed column, similar to this one?
([Duration] & ' MyCustomText')
Can i add custom text in a computed column? Or am i asking too much?
해결책
Yes, as long as you stick with correct T-SQl expresions:
(cast([Duration] as varchar(...)) + 'MyCustomText')
다른 팁
Sure, when you define a computed column, you can write any expression that the server can evaluate using the values in that table .. You just can't use column values from other tables...
=[Column Name]&"My Custom Text"
Verified on Sharepoint 2010
for Column Type = Calculated (calculation based on other columns)
SPACE ( integer_expression )
Example: [column1] + SPACE(2) + [column2]
제휴하지 않습니다 StackOverflow