Topic: SQLExecute()
In a string type column, I need to make a SQL consult with SQLExecute() and to found the max value integer in the string type column. I have wrote the follow code:
UltimoNumero := SQLExecute( 'SELECT MAX( IntToStr( Autores.NumDocumentoAutor ) ) FROM Autores WHERE Autores.id_TipoDocumentos LIKE ' + IntToStr(Id_TipoDocumento ) );
When I run it appear an error in the first function IntToStr() however not in the second function IntToStr().
Help please.