Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8627

Re: Ouput a string in a calculated column(Sqlscript)

$
0
0

Quotes in SQLScript get tricky. The ' denotes the expression so you need to add another '' (triple quotes) to specify a string inside the expression. The following will compile.

 

var_sales = CE_PROJECTION(:var_in,

                                    [                

                                       "COMPANY",

                                       CE_CALC('''SOME TEXT''', varchar(100)) AS"TYPE"                                                                                                       

                                    ]

                  );


Viewing all articles
Browse latest Browse all 8627

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>