由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - JDBC<======================>Oracle8i
相关主题
Oracle8i能装在Win2000下吗?请教一下怎么把javadb的数据导入到oracle中
问一个可能看起来很怪的问题help! 怎么insert一个多行的string
Re: Web DatabaseSQL-Help!
how to connect to remote Oracle database, help me!!!请教一个sql server的问题
how to improve the performance of Oracle Insert operation?一个JDBC的问题,希望大家指教!
ORACLE Pro*C 远程接续一问?How to insert a string into table? Thanks
数据库问题一问Oracle8概 述
老板的无理要求!(希望熟悉Oracle的朋友指点)help! oracle8i client installation on Windows2000/NT4
相关话题的讨论汇总
话题: jdbc话题: oracle8i话题: string话题: machine
进入Database版参与讨论
1 (共1页)
c****g
发帖数: 7
1
I install oracle8i personal edition and java one
the same machine.
How to set the url?
getConnection ("jdbc:oracle:thin:@"+ database,
------------what should be here? local
machine

"scott", "tiger");
JDBC 新手. Thanks a lot!
z***h
发帖数: 7
2
create a table login then try this code:
import java.sql.*;
import java.io.*;
public class JdbcTest
{
public static void main(String args[])
{
//String update = "INSERT INTO login(user_name, password,
user_type) VALUES ('Guest', '143456', 'adminis')";
String query = "SELECT * FROM login";
String driver = "sun.jdbc.odbc.JdbcOdbcDriver";
String url = "jdbc:odbc:ORACLE";
String username = "scott";
String password = "tiger";
try {
// Load the driver to allow connection to the database
Class.forName(

【在 c****g 的大作中提到】
: I install oracle8i personal edition and java one
: the same machine.
: How to set the url?
: getConnection ("jdbc:oracle:thin:@"+ database,
: ------------what should be here? local
: machine
:
: "scott", "tiger");
: JDBC 新手. Thanks a lot!

1 (共1页)
进入Database版参与讨论
相关主题
help! oracle8i client installation on Windows2000/NT4how to improve the performance of Oracle Insert operation?
urgent! which odbc lib file need use when use the oracle8i&odbc on Solaris?ORACLE Pro*C 远程接续一问?
Re: urgent! which odbc lib file need use when use the oracle8i&odbc on数据库问题一问
Set autocommit off老板的无理要求!(希望熟悉Oracle的朋友指点)
Oracle8i能装在Win2000下吗?请教一下怎么把javadb的数据导入到oracle中
问一个可能看起来很怪的问题help! 怎么insert一个多行的string
Re: Web DatabaseSQL-Help!
how to connect to remote Oracle database, help me!!!请教一个sql server的问题
相关话题的讨论汇总
话题: jdbc话题: oracle8i话题: string话题: machine