
Новые сообщения [новые:0]
Дайджест
Горячие темы
Избранное [новые:0]
Форумы
Пользователи
Статистика
Статистика нагрузки
Мод. лог
Поиск
|
|
29.07.2013, 11:03:57
|
|||
|---|---|---|---|
|
|||
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 как проверить этот драйвер ? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|

start [/forum/topic.php?fid=59&tablet=1&tid=2128914]: |
0ms |
get settings: |
13ms |
get forum list: |
20ms |
check forum access: |
6ms |
check topic access: |
6ms |
track hit: |
57ms |
get topic data: |
19ms |
get forum data: |
4ms |
get page messages: |
67ms |
get tp. blocked users: |
3ms |
| others: | 299ms |
| total: | 494ms |

| 0 / 0 |
