This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
dev:sql:orafunctions:instr [2010/07/04 02:44] tdo |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{page>:top_add&nofooter&noeditbtn}} | ||
| - | <html><div align="center"><span style="color:red">DRAFT</span></div></html> | ||
| - | ====== Omnidex SQL Function: INSTR ====== | ||
| - | {{page>:sql_bar&nofooter&noeditbtn}} | ||
| - | ===== Description ===== | ||
| - | The INSTR function returns an integer value representing the starting position of a string within the search string. | ||
| - | |||
| - | This function is only available when the CREATE ENVIRONMENT statement contains the SQL_SYNTAX ORACLE clause or the SET SQL_SYNTAX ORACLE setting is set programmatically. | ||
| - | ===== Syntax ===== | ||
| - | Syntax: INSTR(target_string, search_string[, position[, occurrence]]) | ||
| - | |||
| - | ===== Discussion ===== | ||
| - | ==== target_string ==== | ||
| - | //Target_string// is a character expression of either a column_spec or a collection of functions that return a string. | ||
| - | ==== search_string ==== | ||
| - | //Search_string// is a character expression of either a column_spec or a collection of functions that return a string. | ||
| - | ==== start_position ==== | ||
| - | //Start_position// is an optional integer expression that indicates that the all characters previous to the start_position should be ignored. | ||
| - | ==== occurrence ==== | ||
| - | //occurrence// is an optional integer expression that indicates to return character position of the nth occurrence of the search_string. | ||