JDBC: Simple MSSql connection example not working

后端 未结 8 1539
无人共我
无人共我 2020-12-08 10:29

I am learning Java and need to just run something simple to retrieve some data from MSSQL via JDBC. The example in my book doesn\'t work (but it is several years old) and th

8条回答
  •  抹茶落季
    2020-12-08 10:58

    It may be silly, but check that your Products table is not empty. Is the only reason I see for no getting any exceptions and no printing anything in the console.

提交回复
热议问题