GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.voltdb.com — TRIM() DocumentationTRIM()TRIM() — Returns a string with leading and/or training spaces removed. SynopsisTRIM( [ [ LEADING | TRAILING | BOTH ] [character] FROM ] string-expression ) DescriptionThe TRIM() function returns a string with leading and/or trailing spaces removed. By default, the TRIM function removes spaces from both the beginning and end of the string. If you specify the LEADING or TRAILING clause, spaces are removed from either the beginning or end of the string only. You can also specify an alternate character to remove. By default only spaces (UTF-8 character code 32) are removed. If you specify a different character, only that character will be removed. For example, the following INSERT statement uses the TRIM function to remove any TAB characters from the beginning of the string input for the ADDRESS column: INSERT INTO Customers (first, last, address)
VALUES(?, ?, TRIM( LEADING CHAR(9) FROM ?) );ExampleThe following example uses TRIM() to remove extraneous leading and trailing spaces from the input for three VARCHAR columns: INSERT INTO Customers (first, last, address)
VALUES( TRIM(?), TRIM(?), TRIM(?) ); |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |