sqlite可視化工具(SqliteStudio)
v3.3.3 綠色漢化版- 軟件大?。?span itemprop="fileSize">4.25 MB
- 軟件語(yǔ)言:中文
- 軟件類型:國(guó)產(chǎn)軟件 / 數(shù)據(jù)庫(kù)類
- 軟件授權(quán): 免費(fèi)軟件
- 更新時(shí)間:2022-02-28 14:42:22
- 軟件等級(jí):
- 軟件廠商: -
- 應(yīng)用平臺(tái):WinAll, WinXP
- 軟件官網(wǎng): http://europeautoinsurance.com/
相關(guān)軟件
Navicat Cracker v16.0.10 激活碼注冊(cè)工具
16.00 KB/中文/4.0
pinyin4j-2.5.0.jar(java漢字轉(zhuǎn)拼音)免費(fèi)版
186.00 KB/中文/10.0
SQLite Expert Pro(SQLite可視化管理工具)v5.4.4.539 漢化特別版
83.00 MB/英文/10.0
SQLite Expert去廣告版v5.3.5.476 清爽版
83.00 MB/中文/10.0
MySQL密碼修改軟件綠色版
5.00 KB/中文/10.0
軟件介紹人氣軟件精品推薦相關(guān)文章網(wǎng)友評(píng)論下載地址
SqliteStudio中文版是一款 Sqlite數(shù)據(jù)庫(kù)可視化工具,是使用Sqlite數(shù)據(jù)庫(kù)開發(fā)應(yīng)用的必備軟件,軟件無(wú)需安裝,下載后解壓即可使用,很小巧但很了用,綠色中文版本。比起其它SQLite管理工具,我喜歡用這個(gè)。很方便易用,不用安裝的單個(gè)可執(zhí)行文件,支持中文。歡迎來(lái)到IT貓撲網(wǎng)下載!
SqliteStudio介紹
SQLiteStudio 是一個(gè)跨平臺(tái)的 SQLite 數(shù)據(jù)庫(kù)的管理工具,采用 Tcl 語(yǔ)言開發(fā)。
SQLiteStudio的特色
功能完善的sqlite2和sqlite3工具,視圖編碼支持utf8。
支持導(dǎo)出數(shù)據(jù)格式:csv、html、plain、sql、xml,
可同時(shí)打開多個(gè)數(shù)據(jù)庫(kù)文件
支持查看和編輯二進(jìn)制字段
使用方法
選擇數(shù)據(jù)庫(kù)--->添加數(shù)據(jù)庫(kù)--->選擇你的本地?cái)?shù)據(jù)庫(kù),并點(diǎn)擊+增加就可以查看數(shù)據(jù)庫(kù)了。
SqliteStudio在Android程序中使用已有的SQLite數(shù)據(jù)庫(kù)
1. 準(zhǔn)備SQLite database文件
假設(shè)你已經(jīng)創(chuàng)建了一個(gè)sqlite數(shù)據(jù)庫(kù),我們需要對(duì)其進(jìn)行一些修改。
(譯者注:這里原文是推薦了一個(gè)SQLite數(shù)據(jù)庫(kù)管理軟件,這個(gè)我覺得可以隨自己的喜好,最Windows下面有多款可視化的SQlite數(shù)據(jù)庫(kù)管理軟件,可以方便的讀取,編輯數(shù)據(jù)庫(kù),例如我用的是sqlitestudio
打開數(shù)據(jù)庫(kù),添加一個(gè)新的table “android_metadata",插入一行數(shù)據(jù),具體的SQL如下:
[sql] view plaincopyprint?在CODE上查看代碼片派生到我的代碼片
CREATE TABLE "android_metadata" ("locale" TEXT DEFAULT 'en_US')
INSERT INTO "android_metadata" VALUES ('en_US')
(譯者注:上面兩行是表明需要進(jìn)行的操作,具體可以直接在sqlitesstudio中完成)
然后你需要對(duì)你數(shù)據(jù)表格的primary id 列重命名為 “_id”,這樣Adroid會(huì)知道怎么對(duì)id列進(jìn)行綁定,你可以很容易的在SQlite數(shù)據(jù)庫(kù)管理軟件中進(jìn)行列編輯。
這兩步之后,你的sqlite數(shù)據(jù)庫(kù)文件就準(zhǔn)備好了。
(譯者注:這里我保留了id列,即沒有對(duì)其進(jìn)行重命名,測(cè)試證明也是沒有問(wèn)題的)
2. 在你的Android程序中復(fù)制,打開以及訪問(wèn)數(shù)據(jù)庫(kù)
現(xiàn)在把你上一步準(zhǔn)備好的數(shù)據(jù)庫(kù)文件放在“assets”文件夾下面,然后通過(guò)繼承 SQLiteOpenHelper類來(lái)創(chuàng)建一個(gè)Database Helper類,
你的DataBaseHelper類大致可以如下:
public class DataBaseHelper extends SQLiteOpenHelper{
//The Android's default system path of your application database.
private static String DB_PATH = "/data/data/YOUR_PACKAGE/databases/";
private static String DB_NAME = "myDBName";
private SQLiteDatabase myDataBase;
private final Context myContext;
/**
* Constructor
* Takes and keeps a reference of the passed context in order to access to the application assets and resources.
* @param context
*/
public DataBaseHelper(Context context) {
super(context, DB_NAME, null, 1);
this.myContext = context;
}
/**
* Creates a empty database on the system and rewrites it with your own database.
* */
public void createDataBase() throws IOException{
boolean dbExist = checkDataBase();
if(dbExist){
//do nothing - database already exist
}else{
//By calling this method and empty database will be created into the default system path
//of your application so we are gonna be able to overwrite that database with our database.
this.getReadableDatabase();
try {
copyDataBase();
} catch (IOException e) {
throw new Error("Error copying database");
}
}
}
/**
* Check if the database already exist to avoid re-copying the file each time you open the application.
* @return true if it exists, false if it doesn't
*/
private boolean checkDataBase(){
SQLiteDatabase checkDB = null;
try{
String myPath = DB_PATH + DB_NAME;
checkDB = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY);
}catch(SQLiteException e){
//database does't exist yet.
}
if(checkDB != null){
checkDB.close();
}
return checkDB != null ? true : false;
}
/**
* Copies your database from your local assets-folder to the just created empty database in the
* system folder, from where it can be accessed and handled.
* This is done by transfering bytestream.
* */
private void copyDataBase() throws IOException{
//Open your local db as the input stream
InputStream myInput = myContext.getAssets().open(DB_NAME);
// Path to the just created empty db
String outFileName = DB_PATH + DB_NAME;
//Open the empty db as the output stream
OutputStream myOutput = new FileOutputStream(outFileName);
//transfer bytes from the inputfile to the outputfile
byte[] buffer = new byte[1024];
int length;
while ((length = myInput.read(buffer))>0){
myOutput.write(buffer, 0, length);
}
//Close the streams
myOutput.flush();
myOutput.close();
myInput.close();
}
public void openDataBase() throws SQLException{
//Open the database
String myPath = DB_PATH + DB_NAME;
myDataBase = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY);
}
@Override
public synchronized void close() {
if(myDataBase != null)
myDataBase.close();
super.close();
}
@Override
public void onCreate(SQLiteDatabase db) {
}
@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
}
// Add your public helper methods to access and get content from the database.
// You could return cursors by doing "return myDataBase.query(....)" so it'd be easy
// to you to create adapters for your views.
}
就這樣。
現(xiàn)在你可以創(chuàng)建一個(gè)新的DataBaseHelper實(shí)例,然后調(diào)用createDataBase(),然后再調(diào)用openDataBase()方法,記住修改DB_PATH字符串中“YOUR_PACKAGE”為你真正的package名稱(也就是說(shuō)com.examplename.myapp)
以下是示范代碼:
[java] view plaincopyprint?在CODE上查看代碼片派生到我的代碼片
...
DataBaseHelper myDbHelper = new DataBaseHelper();
myDbHelper = new DataBaseHelper(this);
try {
myDbHelper.createDataBase();
} catch (IOException ioe) {
throw new Error("Unable to create database");
}
try {
myDbHelper.openDataBase();
}catch(SQLException sqle){
throw sqle;
}
...
更多>> 軟件截圖
推薦應(yīng)用
navicat for mysql 64位 25.05 MB
下載/中文/2.0 v16.0.110 中文免費(fèi)版microsoft access 2013 140.00 MB
下載/中文/4.0 免費(fèi)完整版HeidiSQL(MySQL圖形化管理工具) 5.77 MB
下載/中文/10.0 v11.2.0.6219 綠色中文版Oracle 11g 64位/32位 2.05 GB
下載/中文/2.0 v11.2.0.1.0 官方第二版sqlyog ultimate 64位 7.50 MB
下載/中文/7.0 v13.1.1 官方中文注冊(cè)版Navicat for Oracle 16.70 MB
下載/中文/10.0 v12.0.29 中文版Access數(shù)據(jù)庫(kù)查詢分析器 6.74 MB
下載/中文/10.0 v2.4 免費(fèi)中文版dbc2000 win7 64位 16.10 MB
下載/中文/10.0 中文漢化版
其他版本下載
精品推薦 sqlite
- 更多 (33個(gè)) >> sqlite sqlite專題是小編精選給大家的數(shù)據(jù)庫(kù)管理工具,可能有朋友不知道sqlite的作用,它是款遵守ACID的關(guān)系型數(shù)據(jù)庫(kù)管理系統(tǒng)。在編程開發(fā)上能夠那起著很大的作用!它幾乎支持所有電腦操作系統(tǒng),完美兼容,不用擔(dān)心系統(tǒng)的配置與穩(wěn)定性!占用內(nèi)存小,就能輕松運(yùn)行!此番,帶來(lái)的專題包含了sq
SQLite Expert Professional(可視化SQL數(shù)據(jù)庫(kù)管理) 11.45 MB
/英文/10.0SQLite Administrator 2.11 MB
/多國(guó)語(yǔ)言[中文]/10.0SQLite Expert Pro(SQLite可視化管理工具) 83.00 MB
/英文/10.0SQLite數(shù)據(jù)庫(kù)管理(Navicat for SQLite) 57.98 MB
/中文/10.0SQLiteManager 917.00 KB
/中文/10.0sqlite3.dll文件 251.00 KB
/中文/10.0sql server To SQLite DB Converte 568.00 KB
/英文/10.0db文件查看器免費(fèi)版 1.76 MB
/中文/10.0
相關(guān)文章
下載地址
sqlite可視化工具(SqliteStudio) v3.3.3 綠色漢化版
查看所有評(píng)論>> 網(wǎng)友評(píng)論
更多>> 猜你喜歡
Microsoft SQL Server 2000 Personal Edition
SQL Server 2005 SP2
Microsoft SQL Server 2000簡(jiǎn)體中文企業(yè)版
PowerDesigner
數(shù)據(jù)庫(kù)文件轉(zhuǎn)換工具(DBConvert for JSON and SQL)
DFB數(shù)據(jù)庫(kù)修復(fù)工具DataNumen DBF Repair
mysql for ubuntu
MongoDB Compass可視圖形化管理工具
Exportizer(修改編輯數(shù)據(jù)庫(kù)軟件)
SQL Server Compact 4 安裝包
Navicat premium數(shù)據(jù)庫(kù)管理軟件
Oracle Database 12c數(shù)據(jù)庫(kù)軟件