|
|
|
Oracle
|
|||
|---|---|---|---|
|
#18+
Добрый день всем .Уменя установлен Oracle 11g , пишу такой код String url = "jdbc:oracle:thin@localhost:1521:CID"; Properties p = new Properties(); p.setProperty("user", "user1"); p.setProperty("password", "password1"); try { Connection c = DriverManager.getConnection(url,p); String sql ="select sysdate as current_day from dual"; PreparedStatement preStatement = c.prepareStatement(sql); ResultSet result = preStatement.executeQuery(); while(result.next()){ System.out.println("Current Date from Oracle : " + result.getString("current_day")); } System.out.println("done"); } catch(SQLException e) { System.out.println(e.getMessage()); } выдается ошибка No suitable driver found for jdbc:oracle:thin@localhost:1521:CID как проверить этот драйвер ? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 29.07.2013, 11:03:57 |
|
||
|
|

start [/forum/topic.php?fid=59&fpage=218&tid=2128914]: |
0ms |
get settings: |
12ms |
get forum list: |
21ms |
check forum access: |
7ms |
check topic access: |
7ms |
track hit: |
49ms |
get topic data: |
23ms |
get forum data: |
5ms |
get page messages: |
70ms |
get tp. blocked users: |
3ms |
| others: | 293ms |
| total: | 490ms |

| 0 / 0 |
