This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
dev:sql:functions:position [2010/07/09 03:20] els |
dev:sql:functions:position [2010/07/09 03:21] els |
||
---|---|---|---|
Line 24: | Line 24: | ||
==== Example 1: Column ==== | ==== Example 1: Column ==== | ||
- | <code SQL> | + | <code> |
> select name, position('.' in name) pos from individuals; | > select name, position('.' in name) pos from individuals; | ||
Line 43: | Line 43: | ||
The following example removes the salutation from the name. | The following example removes the salutation from the name. | ||
- | <code SQL> | + | <code> |
> select trim( | > select trim( | ||
>> substring(NAME | >> substring(NAME |