Sample Header Ad - 728x90

pgsql Return Partial Text Field Ending In A Whole Word

1 vote
1 answer
54 views
I found this PHP code that returns a sub-string ending with a whole word (IE separated by a space): if ( strlen( $body ) 0 ) $body = substr( $body , 0 , $rpos ); return $body; Is it possible to achieve the same result using pgsql's string manipulation functions?
Asked by Ron Piggott (187 rep)
May 21, 2019, 03:18 PM
Last activity: May 21, 2019, 06:16 PM