on 12-04-2013 5:18 AM
Hi ,
Could you please help on this issue . I am trying to use the cast function to convert number varchar in Information design tool .
But it is throwing error message character set mismatch.
Thanks & Regards
Venkat
What is you syntax? Could you share it so that we may help you better?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
I am using correct syntax and its parsing correctly at universe level but while trying to see the value its throwing character mismatch error .
At table level the column (column name as version name) data type is nvarchar . It contains the value like V0 , xyz, abc .. etc. I need display 000 instead of V0 value .
so I am using the below code to convert V0 to 000
case when version='V0' then cast('000' as varchar) else version end .
Thanks
Venkat
Make sure ou set the datatype of the object as Char before converting it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you using multiple objects / columns in the expression, in that case you will have to CAST the other related columns too, else there will be a mismatch in the datatype hence the error.
Let me know if this helps.
Sujit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.