10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

System-defined FunctionsString Concatenation ResultsThe following table shows the results of concatenating string expressions ofvarious character data types:1stString2nd String - - Trim Blanks - -From 1st From 2ndResult Typec c Yes Yes cc text Yes Yes cc char Yes Yes cc varchar Yes Yes ctext c No Yes cchar c Yes Yes cvarchar c No Yes ctext text No No texttext char No Yes texttext varchar No No textchar text Yes No textvarchar text No No textchar char No No charchar varchar No No charvarchar char No No charvarchar varchar No No varcharWhen concatenating more than two operands, OpenROAD evaluatesexpressions from left to right, for example: varchar + char + varchar isevaluated as (varchar+char)+varchar. To control concatenation results forstrings with trailing blanks, use the trim, notrim, and pad functions.Date FunctionsOpenROAD supports functions that derive values from absolute dates and frominterval dates. These functions operate on rows or variables that contain datevalues. An additional function, dow(), returns the day of the week (forexample, mon, tue) for a specified date. The dow() function is described inData Type Conversion Functions (see page 51).Language Elements 57

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!