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
全站熱搜