當前位置:首頁 » 網路資訊 » oncokb資料庫怎樣下載數據
擴展閱讀
黑蘋果可以發布app 2025-05-10 22:34:49
吃個蝦再喝酸奶可以嗎 2025-05-10 22:33:23

oncokb資料庫怎樣下載數據

發布時間: 2022-11-03 12:21:14

⑴ 中國碳核算資料庫資料庫怎麼下載數據

點擊首頁「數據下載」進入二級目錄;找到想要下載的數據內容,點擊進入;在相關數據頁面內點擊下載即可。
如不能完成下載,請檢查個人網路是否存在故障,或更換瀏覽器進行嘗試。
中國碳核算資料庫(China Emission Accounts and Datasets, CEADs)由中外多所研究機構的科研人員共同開發,展示中國多尺度能源、碳排放及社會經濟核算清單的最新研究成果,並提供公開免費的數據下載,供非商業用途研究使用。

⑵ java代碼怎樣將oracle資料庫中數據下載本地,為.txt文件或者.excel文件。

第一個類:

package totabel.action;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JOptionPane;

import topdf.TableToPdf;
import totabel.view.TabelData;
import totabel.xls.ExcelDemo;

public class TableAction implements ActionListener {
TabelData data;

public TableAction(TabelData data) {
this.data = data;
}

public void actionPerformed(ActionEvent e) {
String str = e.getActionCommand();
if ("添加".equals(str)) {
data.addData();
} else if ("導出到Excel".equals(str)) {
ExcelDemo demo = new ExcelDemo();
demo.method(data);
} else if ("刪除".equals(str)) {
if (data.getRow() != -1) {
data.delRow();
} else {
JOptionPane.showMessageDialog(null, "請選擇要刪除的行!");
}
}else if("從Excel導入".equals(str)){
data.getXlsInfo();
}else if("從Excel導入到資料庫".equals(str)){
data.toDb();
}else if("從table導出到pdf".equals(str)){
TableToPdf pdf=new TableToPdf();
pdf.newPage(data);
}else if("計算學分".equals(str)){
data.getXlsInfoToCredit();
}
}

}

第二個類:資料庫連接
package totabel.db;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

public class JdbcConnection {
private static JdbcConnection con;

public static JdbcConnection getCon() {
if (con == null) {
con = new JdbcConnection();
}
return con;
}

public Connection getConnection() {
Connection connection=null;
try {
Class.forName("oracle.jdbc.OracleDriver");
String url = "jdbc:oracle:thin:@127.0.0.1:1521:oracle";
String user = "scott";
String password = "tiger";
connection = DriverManager.getConnection(url, user,
password);

} catch (ClassNotFoundException e) {
e.printStackTrace();
} catch (SQLException e) {
e.printStackTrace();
}
return connection;
}
// public static void main(String[] args) {
// JdbcConnection connection=new JdbcConnection();
// connection.getConnection("asd", "99");
// }

}

第三個類:主類(入口)
package totabel.db;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

public class JdbcConnection {
private static JdbcConnection con;

public static JdbcConnection getCon() {
if (con == null) {
con = new JdbcConnection();
}
return con;
}

public Connection getConnection() {
Connection connection=null;
try {
Class.forName("oracle.jdbc.OracleDriver");
String url = "jdbc:oracle:thin:@127.0.0.1:1521:oracle";
String user = "scott";
String password = "tiger";
connection = DriverManager.getConnection(url, user,
password);

} catch (ClassNotFoundException e) {
e.printStackTrace();
} catch (SQLException e) {
e.printStackTrace();
}
return connection;
}
// public static void main(String[] args) {
// JdbcConnection connection=new JdbcConnection();
// connection.getConnection("asd", "99");
// }

}
第四個類:
package totabel.xls;

import java.io.File;
import java.io.IOException;
import java.util.Vector;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import javax.swing.JOptionPane;

import totabel.view.TabelData;

import jxl.Cell;
import jxl.Sheet;
import jxl.Workbook;
import jxl.read.biff.BiffException;
import jxl.write.Label;
import jxl.write.WritableSheet;
import jxl.write.WritableWorkbook;
import jxl.write.WriteException;
import jxl.write.biff.RowsExceededException;

public class ExcelDemo {

/**
*
* @param args
*/
private Vector title = new Vector();

private Vector[] array;

// public static void main(String[] args) {
// ExcelDemo demo = new ExcelDemo();
// demo.getXlsInfo();
//
// }

public void method(TabelData table) {
int row = table.getRowSize();
int column = table.getColumnSize();
WritableWorkbook book = null;
Vector title = table.setTitle();
Object[] str = title.toArray();
try {
book = Workbook.createWorkbook(new File("test.xls"));
WritableSheet sheet = book.createSheet("成績表", 0);
for (int i = 0; i < str.length; i++) {
sheet.addCell(new Label(i, 0, (String) str[i]));
}
for (int i = 1; i < row + 1; i++) {
for (int j = 1; j < column + 1; j++) {
sheet.addCell(new Label(j - 1, i, table.getTableInfo(i - 1,
j - 1)));
}
}
book.write();
JOptionPane.showMessageDialog(null, "導出完成!");
} catch (IOException e) {
e.printStackTrace();
} catch (RowsExceededException e) {
e.printStackTrace();
} catch (WriteException e) {
e.printStackTrace();
} finally {
try {
book.close();
} catch (WriteException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
}

/**
* 輸出Excel的數據到表單
*
* @return
*/
public Vector getXlsInfo() {
Vector v = new Vector();
jxl.Workbook rwb = null;
int index = 0;
try {
rwb = jxl.Workbook.getWorkbook(new File("test.xls"));
Sheet[] sheet = rwb.getSheets();
for (int i = 0; i < sheet.length; i++) {
int rs = sheet[i].getRows();
array = new Vector[rs - 1];
for (int j = 1; j < rs; j++) {
Cell[] cell = sheet[i].getRow(j);
Vector info = new Vector();
for (int k = 0; k < cell.length; k++) {
info.add(cell[k].getContents());
}
array[index] = info;
index++;
v.add(info);
}
Cell[] titleCell = sheet[i].getRow(0);
for (int j = 0; j < titleCell.length; j++) {
title.add(titleCell[j].getContents());
}
}
} catch (BiffException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally {
rwb.close();
}
return v;
}

public Vector getXlsInfoToCredit() {
Vector v = new Vector();
jxl.Workbook rwb = null;
try {
rwb = jxl.Workbook.getWorkbook(new File("d:/test/信科0821(南遷).xls"));
Sheet[] sheet = rwb.getSheets();
for (int i = 0; i < sheet.length; i++) {
int rs = sheet[i].getRows();
array = new Vector[rs - 1];
for (int j = 1; j < rs; j++) {
Cell[] cell = sheet[i].getRow(j);
Vector info = new Vector();
for (int k = 0; k < cell.length; k++) {
// if(){
Pattern p = Pattern.compile("[0-9]{1,}");
Matcher m = p.matcher(cell[k].getContents());
if (m.matches()) {
int score = Integer.valueOf(cell[k].getContents());
float result = getScore(score);
info.add(result);
} else {
info.add(cell[k].getContents());
}
}
v.add(info);
}
Cell[] titleCell = sheet[i].getRow(0);
for (int j = 0; j < titleCell.length; j++) {
title.add(titleCell[j].getContents());
}
}
} catch (BiffException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally {
rwb.close();
}
return v;
}

public float getScore(int n) {
float score = n;
if (n < 60) {
score = 0;
return score;
} else {
if (n >= 60 && n <= 63) {
score = (float) 1.0;
} else if (n >= 64 && n <= 67) {
score = (float) 1.3;
} else if (n >= 68 && n <= 71) {
score = (float) 1.7;
} else if (n >= 72 && n <= 75) {
score = (float) 2.0;
} else if (n >= 76 && n <= 79) {
score = (float) 2.3;
} else if (n >= 80 && n <= 83) {
score = (float) 2.7;
} else if (n >= 84 && n <= 87) {
score = (float) 3.0;
} else if (n >= 88 && n <= 91) {
score = (float) 3.3;
} else if (n >= 92 && n <= 95) {
score = (float) 3.7;
} else if (n >= 96 && n <= 100) {
score = (float) 4.0;
}
return score;
}

}

public Vector getTitle() {
// getXlsInfo();
return title;
}

public Vector[] getArray() {
getXlsInfo();
return array;
}

}

因為時間問題就沒有再寫了,上面是我以前做的,不懂就q我

⑶ 惠普怎麼下載資料庫

以惠普下載oracle資料庫為例:
1.打開網路搜索,輸入「oracle」,在結果中,找到 【oracle官方網站】點擊進入。
1.進入「oracle官網」,點擊上方菜單欄【downloads】(下載),在下拉菜單中找到【Database】(資料庫),然後點擊下方【oracle Database】(oracle 資料庫)。
3.進入oracle 資料庫下載節目,勾選 Accept License Agreement(同意oracle協議)。
4.勾選協議完成,滑鼠往下拉找到【Oracle Database 11g Release 2】界面,"在下方選擇需要安裝oracle的操作系統類型",選擇玩吧點擊後發的【select All】。
5.進入下載節目,勾選 Accept License Agreement 然後在下方分別下載【win32_11gR2_database_2of1.zip 】【win32_11gR2_database_2of2.zip 】。
6.此時要求我們「登錄oracle賬戶」,如果我們有oracle賬戶,直接輸入賬戶密碼進行登錄即可,

⑷ 怎樣把一個網站的資料庫下載下來

資料庫可以下載,但是要看是什麼資料庫,比如MDB為後綴的資料庫就能下載,當然現在網站空間伺服器都有防mdb沒下載的功能,但是SQL的資料庫你也只有在網站上面用phpadmin這個軟體來進行資料庫備份,然後下載資料庫(那個軟體我好像忘了是不是叫這個),其實也有很多的工具,如SQL
TOOLS這個軟體也可以!只不過是英文的,但也有漢化的,剛開始可能不是很好用!但是這個兩個都需要有SQL的資料庫帳號和密碼。並且是管理員帳號密碼!事情沒有那麼絕對!

⑸ 如何下載網站資料庫

你是說access?這個是再office套裝理的
sql-server可以從網上下的,XP只能裝個人開發版的
如果你是想下別人的資料庫,初學者就要藉助一些黑客軟體了

⑹ 怎樣下載網站資料庫中的數據

用DOmain3.6軟體裡面有哦

⑺ 你好啊,我想請問一下,網頁資料庫如何下載啊

如果後台操作密碼忘了,需要聯系給你們做網站的公司重置密碼。

FTP只能下載網頁(源文件),該密碼忘了需要聯系主機空間服務商。。

網頁資料庫是無法直接下載的,如果你想備份數據庫,不同的資料庫有不同策略,具體的就不好說了。

備份資料庫也可以聯系一下空間商,他們一般每天備份。。

⑻ 如何從伺服器資料庫里下載某表的數據

你存在A,B兩個資料庫,如果想從A獲取一個a表到B
1:use 資料庫B
select * into B..b from A..a

⑼ 資料庫1000萬條數據 如何快速下載

迅雷。
將所有序列的下載鏈接整理在一起後在迅雷中創建下載,可以批量進行序列下載。

⑽ 求助!怎樣下載資料庫的數據啊,謝謝啊

一般用整站後台自帶備份就等於下載整站資料庫的數據
特殊情況下,後台都不能進,但是還需要備份資料庫的話,可以直接進mysql/data/資料庫文件夾里下載你的數據文件一般都以.frm
.MYD
.MYI為擴展名