INSTR(string,substr)

Description: Returns the character position of the first occurrence of substr within string, or 0 if it does not occur.

Works the same as LOCATE() with only two arguments, but with the arguments reversed.

Examples:

  • INSTR('Harold Jacobs','a') returns 2.

  • INSTR('Harold Jacobs','JACOBS') returns 8.

  • INSTR('Harold Jacobs',BINARY 'JACOBS') returns 0.

See also: LOCATE()

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.218.93.169