Open pietrograssi68 opened 1 year ago
Hi @pietrograssi68, DId the code you have in getTableCountRecord() work? If so Have you tried replacing String sql = "SELECT count(*) FROM " + tabName; with String sql = "SELECT * FROM " + tabName; ?
Hi @Kuassim, yes of course with this change the first step would be to return a recordset and not an integer. The problem is the following steps: how to make the view _VIEWCOUNT see the recordset returned by the function JavaExternalDb.getTableCountRecord?
I have a VIEW (
VIEW_COUNT
) that returns 1 record with the number of rows from two external tables fetched via jdbc connection. Below the code:How can I, likewise, create a VIEW that returns all the contents of an external table via jdbc?
Thanks for the info