会不会是结果没法放的原因?
REPLACE scalar function
The result of the function is:
* VARCHAR(4000) if the first, second, and third arguments are VARCHAR or CHAR
* CLOB(1M) if the first, second, and third arguments are CLOB or LONG VARCHAR
* BLOB(1M) if the first, second, and third arguments are BLOB.
若是知道RETURN RESULT是多长的话,试试把结果给固定住,象是CHAR (REPLACE ('DINING', 'N', 'VID'), 10)。