0

I try to get the last position of a character with a query with instr, but impossible to do it as the reverse() function doesn't exist in SQLite. Do you have an idea ?

SELECT substr(ZSTREETNAME, instr(ZSTREETNAME,',')+1) FROM ZTAB_PARTICULIER WHERE ZSTREETNAME like '%,%'

In the string : "Rue, test, exemple, à l'Eau, 46"
What I search : The position of the last character "," of the string
What I want : 28

ΩlostA
  • 2,501
  • 5
  • 27
  • 63

0 Answers0