ITeye博客

7.7.7.7.

taeky · 2010-03-09 18:13 · Oracle 9i · 数据库 · SQL Server · Java · SQL · JDBC · Oracle · Markdown

7.7.7.7.7.7.7.7.7.7.7.

评论(3)

  1. #3 楼 · taeky · 2010-07-06 09:28

    凌空一叶 writes:

    第一个程序,19行的标点你写错了
    // 2.得到连接
    18. Connection ct = DriverManager.getConnection(
    19. "jdbc.odbc:testConnectOracle", "scott",
    20.
    21."tiger");
    22.

    应该是

    // 2.得到连接
    18. Connection ct = DriverManager.getConnection(
    19. "jdbc[color=red]:[/color]odbc:testConnectOracle", "scott",
    20.
    21."tiger");
    22.

    不会吧? 是冒号??

  2. #2 楼 · 凌空一叶 · 2010-07-03 22:13

    jdbc后面是冒号,不是点

  3. #1 楼 · 凌空一叶 · 2010-07-03 22:13

    第一个程序,19行的标点你写错了
    // 2.得到连接
    18. Connection ct = DriverManager.getConnection(
    19. "jdbc.odbc:testConnectOracle", "scott",
    20.
    21."tiger");
    22.

    应该是

    // 2.得到连接
    18. Connection ct = DriverManager.getConnection(
    19. "jdbc:odbc:testConnectOracle", "scott",
    20.
    21."tiger");
    22.

评论功能维护中,当前仅展示历史评论。