ps = switchboard.connection.prepareStatement("select * from contents where containerId = 'fbatchcombo1'")
switchboard.resultSet = ps.executeQuery();
while switchboard.resultSet.next():
results = switchboard.resultSet.getString(3)
f.write (results)
I'm using jython 'I think' and I have limited access to (the cursor) 'whatever that is'. It appears as though I have limited access because the connection string isn't available to me so I think I have to make due with this switchboard.connection. My simple question is why does the above code only work with the while loop in there? Why can't I just have the results = switchboard.resultSet.getString(3)
The hard question is where can I find information on any of this?


Sign In
Create Account


Back to top









