close

如何進入SQLite環境

1. find the SDK adb.exe  , and open dos window then entry to sdk folder.

ex:C:\android-sdk-windows\platform-tools\adb shell

如果同時開啟多個模擬器,上述的指令會發生錯誤(adb 不知要連到哪台模擬器),這時需要指定模擬器序號

>adb devices  //查詢有哪些模擬器

>adb -s emulator-5554 shell  //指定使用模擬器

 

2. 另一使用SQLite方式

> cd C:\Users\[YourUsername]\android-sdks\platform-tools
> adb shell
> cd data/data/[application namespace]/databases/
# sqlite3 [Database Name].db

3.建立SQLite資料庫

>sqlite3 abc.db

sqlite3> .help

 

4. desc table

sqlite>.tables
全站熱搜
創作者介紹
創作者 射手奶爸 的頭像
射手奶爸

奶爸的部落格

射手奶爸 發表在 痞客邦 留言(0) 人氣()