I’m using Advantage Database Server 9.10, and I want to append a text to Memo field.
I tried this way,
UPDATE
myTable
SET
memo = cast(memo as SQL_VARCHAR(max))
+ cast(' Appended string' as SQL_VARCHAR(max))
WHERE
pk = '80'
but it does not work,
anybody know how to do this?
There is no
VARCHAR(MAX)data type in ADS, but you can cast toSQL_VARCHARorSQL_CHARinstead.Correct syntax:
You can find the valid list of data types for CAST and CONVERT in the ads documentation:
http://devzone.advantagedatabase.com/dz/webhelp/Advantage10.1/master_miscellaneous_functions.htm