This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
dev:sql:functions:position [2010/07/09 03:20] els |
dev:sql:functions:position [2010/07/09 20:08] 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 | ||
Line 60: | Line 60: | ||
KATHLEEN TUCKER | KATHLEEN TUCKER | ||
</code> | </code> | ||
+ | ====== Additional Resources ====== | ||
+ | |||
+ | See also: | ||
+ | {{page>dev:sql:functions:see_also_string&nofooter&noeditbtn&noheader}} | ||
+ | |||
{{page>:bottom_add&nofooter&noeditbtn}} | {{page>:bottom_add&nofooter&noeditbtn}} |