It is not possible to get data and the number of rows in the Database Table
None of the listed methods works; the table is created and there is a record there:
If rs.NextRow Then <-- always gives the true, although there is nothing there !!!
Dim rs As ResultSet =SQL.ExecQuery("SELECT MAX(ClientId) FROM Client")
' Dim rs As ResultSet =SQL.ExecQuery("Select COUNT() FROM Client") ' same mistake!!!
Dim id As Int= 1
Try
If rs.NextRow Then
id=rs.GetInt("ClientId")
id = id + 1
End If
Catch
Log(LastException)
End Try
rs.Close
ERROR:
java.sql.SQLException: no such column: 'ClientId'
thanks for the advice
None of the listed methods works; the table is created and there is a record there:
If rs.NextRow Then <-- always gives the true, although there is nothing there !!!
Dim rs As ResultSet =SQL.ExecQuery("SELECT MAX(ClientId) FROM Client")
' Dim rs As ResultSet =SQL.ExecQuery("Select COUNT() FROM Client") ' same mistake!!!
Dim id As Int= 1
Try
If rs.NextRow Then
id=rs.GetInt("ClientId")
id = id + 1
End If
Catch
Log(LastException)
End Try
rs.Close
ERROR:
java.sql.SQLException: no such column: 'ClientId'
thanks for the advice