I would like to know how best to work with SQL abstraction in a multi-banking system.
For example: Firebird : SELECT SUBSTRING(nome FROM 5 FOR 8) FROM clientes
Oracle : SELECT SUBSTR(nome,5,8) FROM clientes
How to make the application, after identifying which bank is being used, prepare the SQL statement correctly?
I know there are several ways to do this. But technically what is the best way to do it or the most advised?