Adds a string at the end of the StringBuffer.
1 stringBuffer.append
<stringBuffer.append
name='name'
mode='mode'
trim='true|false'
>
<value /> +
</stringBuffer.append>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aname | string | Name of the variable to be referenced later. | |||
Amode | string | unquoted to avoid the quotation marks when this String is used in a query or in a function. | |||
Atrim | boolean | false | true to remove the blank spaces which exist at the beginning and/or at the end of the string of characters. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Evalue | String | Variable of entry of the SQL Object. |
Returns | |
---|---|
Type | Description |
Object | Object of StringBuffer type. |
Example
Creates a dynamic SQL sentence.
Copy
<xsql-script name='stringbuffer_append_sample'> <body> <set name='code'>ABC</set> <stringBuffer name='buf'>SELECT *</stringBuffer> <stringBuffer.append name='buf'> FROM cthird</stringBuffer.append> <stringBuffer.append name='buf'> WHERE cthird.code = <code /></stringBuffer.append> <println><stringBuffer.toString name='buf'/></println> </body> </xsql-script>