Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Informix
Expertise: Beginner
Aug 14, 2000

Function Returning Character Position Within String

Question:
Is there a function in Informix equivalent to Oracle's instr() that returns the position of a character within a string? Also, is there a function that counts the number of times a given character repeats within a string?

Answer:
Neither of these Oracle-specific functions are SQL-92 compliant. Informix does not have them. You may be able to create a workaround by using a combination of the TRIM and LENGTH expressions.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap