MySQL Forums
Forum List  »  General

Re: Find specific word in string, return the previous 4 characters
Posted by: Mark White
Date: January 29, 2019 07:39AM

I've tried using SUBSTR however I am receiving an error;SQL0138N A numeric argument of a built-in string function is out of range. SQLSTATE=22011

SUBSTR(FIELD12,LOCATE('Month', FIELD12),-4)

Options: ReplyQuote


Subject
Written By
Posted
Re: Find specific word in string, return the previous 4 characters
January 29, 2019 07:39AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.