स्क्लाइट3
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
रिमोट शेल से अपने डिवाइस पर या अपनी होस्ट मशीन से, sqlite3
कमांड-लाइन प्रोग्राम का इस्तेमाल करके
Android ऐप्लिकेशन की मदद से बनाए गए SQLite डेटाबेस. sqlite3
टूल में कई
काम के निर्देश. जैसे, टेबल का कॉन्टेंट प्रिंट करने के लिए .dump
और
.schema
का इस्तेमाल करके मौजूदा टेबल के लिए, एसक्यूएल CREATE स्टेटमेंट प्रिंट किया जा सकता है. यह टूल,
SQLite कमांड को तुरंत एक्ज़ीक्यूट किया जा सकता है.
SQLite का इस्तेमाल करें
दस्तावेज़ में देखें. अतिरिक्त दस्तावेज़ के लिए, यहां जाएं
sqlite3
और
एसक्यूएल भाषा की खास बातें काम करती हैं
SQLite से.
रिमोट शेल से sqlite3
का इस्तेमाल करने के लिए:
- निम्न आदेश दर्ज करके रिमोट शेल दर्ज करें:
adb [-d|-e|-s {<serialNumber>}] shell
- रिमोट शेल से, यह निर्देश डालकर
sqlite3
टूल को चालू करें:
sqlite3
आपके पास ऐसे डेटाबेस का पूरा पाथ चुनने का विकल्प भी होता है जिसे एक्सप्लोर करना है.
एम्युलेटर/डिवाइस के इंस्टेंस, SQLite डेटाबेस को डायरेक्ट्री में स्टोर करते हैं
/data/data/<package_name>/databases/
.
sqlite3
शुरू करने के बाद,
कमांड देने के लिए किया जा सकता है. adb रिमोट शेल से बाहर निकलने और वापस जाने के लिए
exit
या Control+D दबाएं.
उदाहरण के लिए:
$ adb -s emulator-5554 shell
# sqlite3 /data/data/com.example.google.rss.rssexample/databases/rssitems.db
SQLite version 3.3.12
Enter ".help" for instructions
.... enter commands, then quit...
# sqlite> .exit
ध्यान दें: फ़ाइलें देखने के लिए, आपके पास फ़ाइल सिस्टम का रूट ऐक्सेस होना ज़रूरी है
/data/data
डायरेक्टरी हैरारकी में.
किसी शेल के बजाय, स्थानीय तौर पर sqlite3
का इस्तेमाल करने के लिए,
डिवाइस से डेटाबेस फ़ाइल खींचें और sqlite3
शुरू करें:
- अपने डिवाइस से अपनी होस्ट मशीन पर डेटाबेस फ़ाइल की कॉपी बनाएं:
adb pull <database-file-on-device>
- डेटाबेस फ़ाइल की जानकारी देते हुए,
sqlite3
टूल शुरू करें:
sqlite3 <database-file-on-host>
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया."],[],[],null,["# sqlite3\n\nFrom a remote shell to your device or from your host machine, use the [`sqlite3`](https://www.sqlite.org/) command-line program to manage\nSQLite databases created by Android applications. The `sqlite3` tool includes many\nuseful commands, such as `.dump` to print out the contents of a table and\n`.schema` to print the SQL CREATE statement for an existing table. The tool also gives\nyou the ability to execute SQLite commands on the fly.\n\nRefer to the [SQLite\ndocumentation](https://sqlite.org/docs.html) for full details. For additional documentation, visit\n[`sqlite3`](https://sqlite.org/cli.html) and the\n[SQL language specification](https://sqlite.org/lang.html) supported\nby SQLite.\n\nTo use `sqlite3` from a remote shell:\n\n1. Enter a remote shell by entering the following command: \n\n ```\n adb [-d|-e|-s {\u003cserialNumber\u003e}] shell\n ```\n2. From the remote shell, start the `sqlite3` tool by entering the following command: \n\n ```\n sqlite3\n ```\n\n You can also optionally specify a full path to a database that you want to explore.\n Emulator/device instances store SQLite databases in the directory\n `/data/data/\u003cpackage_name\u003e/databases/`.\n3. Once you invoke `sqlite3`, you can issue commands in the shell. To exit and return to the adb remote shell, enter `exit` or press Control+D.\n\nFor example: \n\n```\n$ adb -s emulator-5554 shell\n# sqlite3 /data/data/com.example.google.rss.rssexample/databases/rssitems.db\nSQLite version 3.3.12\nEnter \".help\" for instructions\n.... enter commands, then quit...\n# sqlite\u003e .exit\n```\n\n**Note:** You need root access to the file system to view files\nwithin the `/data/data` directory hierarchy.\n\nTo use `sqlite3` locally, instead of within a shell,\npull the database file from the device and start `sqlite3`:\n\n1. Copy a database file from your device to your host machine: \n\n ```\n adb pull \u003cdatabase-file-on-device\u003e\n ```\n2. Start the `sqlite3` tool, specifying the database file: \n\n ```\n sqlite3 \u003cdatabase-file-on-host\u003e\n ```"]]