linuxÏÂjavaÈçºÎ¶ÁÈ¡accessÊý¾Ý¿âÎļþ
×î½üÏîÄ¿ÐèÒªÔÚredhat el4ÏÂͨ¹ýjava¶ÁÈ¡accessÊý¾Ý,ÓÉÓÚÒµÎñÔÒò,Ö»ÄÜÓÃaccessÊý¾Ý¿â.ÔÚÍøÉÏÕÒÁËһЩ·½·¨,µ«¶¼Ê§°Ü.
ÇëÎÊÓÐûÓÐ×ö¹ýÕâ·½ÃæµÄ¸ßÊÖ¸ø¸ö½â¾ö°ì·¨,»òÓгɹ¦µÄ°²×°¹ý³ÌÒ²¿É
ÒÑ°²×°¹ýunixodbc,mdbtools,mdbtools-odbc
ÎҵĴúÂëÒ»Ö±Ö´ÐÐʧ°Ü,ÊÇ·ñ´úÂëÓÐÎÊÌâ:
*************************************
import java.sql.Connection;
import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
public class RAccess{
public static void main(String[] args){
try{
Driver driver = (Driver) Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
DriverManager.registerDriver(driver);
Connection connection = DriverManager.getConnection(args[0]);
Statement statement = connection.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);
ResultSet set = statement.executeQuery("SELECT * from RECORD");
while(set.next()){
System.out.println(set.getObject(1));
}
set.close();
statement.close();
Ïà¹ØÎÊ´ð£º
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
ÎÒÔÚjspÒ³Ãæ´æÉÏÒ»¸ösession,±¾Ò³Ã滹¿ÉÒÔÈ¡³öÖµÀ´.
µ«ÊÇһˢÐÂ,»òÕß´ò¿ªÐµÄÒ³Ãæ¾ÍÈ¡²»³öÖµÀ´ÁË.
Ææ¹ÖµÄÊÇ,ÎÒ²âÊÔÁíÒ»¸ö³ÌÐòʱºò
ÔÚjspÒ³Ãæ´æÉÏÒ»¸ösession,±¾Ò³Ãæ¿ÉÒÔÈ¡³öÖµÀ´,ˢлò´ò¿ªÐÂÒ³ÃæÖµÄÜÈ¡³öÀ´ÁË.
......
ÎÒÓÃAccessÊý¾Ý¿â×öÁËÒ»¸öͼÊéÊý¾Ý¿â£¬ÀïÃæÓÐÒ»¸ö×Ö¶ÎÊÇISBN£¬¾ÍÊÇISBNºÅ£¬µ«ÊÇÖ»µÄÒ»×Ü·ÖͼÊéдµÄISBNºÅ£¬ÓеÄûд£¬Ð´µÄÄÇÒ»²¿·ÖÓеÄISBNÊÇÖظ´µÄ£¬ÄÜ·ñÓÃSQLÓïÑÔ°ÑÖظ´µÄ¹ýÂ˵ô£¬µ«Ã»Ð´ISBNºÅµÄͼÊé²»ÄܹýÂ˵ô£¬È ......
ÎÒÐèÒªÔÚÒ»¸öforÑ»·ÀïÃæÿѻ·Ò»´Îºó,ÔÝÍ£nÃëÖÓ,ÔÙÖ´ÐÐÏÂÒ»´ÎÑ»·.ÎÒ²»ÏëÓÃThread.sleep(n);Õâ¸ö·½·¨,ÇëÎÊ»¹ÓÐÆäËûµÄ·½·¨¿ÉÒÔʵÏÖÕâ¸ö¼òµ¥ÒªÇóÂð?Óмòµ¥´úÂë¸üºÃ,лл!
ÆÚ´ýºÃµÄ·½·¨£¡
ÎÒÖªµÀµÄÒ²¾ÍÊÇÕâ¸öÁË
......
Ïë×öÒ»¸öjspµÄµç×ÓÉÌÎñÍøÕ¾£¬ÏëÕÒһЩԴ´úÂ룬ÇëÎÊÄǸöÍøÕ¾ÓкõÄ×ÊÔ´¡£Ð»Ð»£¡
ËÑË÷Ï塃 ¿ªÔ´µÄÒ²ÓÐ
csdn¾ÍÓÐÏàËƵÄÔ´Â룬¥Ö÷ËÑÒ»ÏÂ
java ¿ªÔ´´óÈ«
¸ÄÄ£°åºÃÂ鷳Ŷ£¬»¹²»Èç×Ô¼ºÐ´¸öÁËÄØ
jf
¶¥Ò» ......