You can also get the API for Windows Phone 8 or.
But you might need it if you are using a different OS than Windows you can get the Linux or Mac OS version of SQLite.Īlso, you can get the documentation or source code from there if you wish. However, there are some other packages for different purposes. This is what we will use through the tutorials to run SQLite queries: Step 5) Copy the file “ sqlite3.exe” into it. Step 4) Create a new directory “ sqlite“: Step 3) Open My Computer, and double-click the partition “C” to navigate to it: You will find the “ sqlite3.exe” in the extracted file as following:
Step 1) Download the highlighted download package from the previous image to your PC.
In the following steps, you will find the steps for how to install the Command-Line Program (CLP) on your machine: Installing the Command-Line Program (CLP) on your machine: 64-bit DLL (圆4): The SQLite Database system core library for 圆4 platforms.32-bit DLL(x86): The SQLite Database system core library for x86 platforms.So that’s how you install SQLite 3 and SQLite Browser on Ubuntu 18.04 LTS, and use SQLite Browser. The database should be exported, now click on OK.Īs you can see, the database was exported as SQL. Now select the file path, type in a filename and click on Save. You can also change some options to configure how the exported file should be formatted. Now select the tables that you want to export from the Table(s) section. Now you can click on File > Export and then select either Database to SQL file... or Table(s) as CSV file... or Table(s) to JSON... to export the database to your desired format. Now select your SQLite database file and click on Open. You can export the SQLite database using SQLite Browser.įirst open the SQLite database from File > Open Database… Now if you run SELECT * FROM users again, you should see the new data.Įxporting SQLite Database using SQLite Browser INSERT INTO users(name, country) VALUES(‘John Doe’, ‘US’) You can insert into the users table with the following SQL command: Now if you want to execute the SQL statement, click on the play button as marked in the screenshot below. I wrote a simple SQL statement, SELECT * FROM users.
To execute SQL statements, first go to the Execute SQL tab as marked in the screenshot below.Įnter your SQL statements in the marked section of the screenshot below. If you want, you can execute SQL statements on SQLite Browser as well. The changes should be written to the file on your filesystem. Now to save the changes, click on Write Changes button as marked in the screenshot below. Click on each of them and type in your desired data.Īs you can, I added a new row to the users table. The name and the country field should be blank. Once users table is selected, click on New Record button to add a new row or data into the table. Now select the users table from the marked section of the screenshot below. Now I will show you how to insert data into the users table.įirst go to the Browse Data tab as marked in the screenshot below. Once you’re happy with your table, click on OK. SQLite Browser is an awesome tool to lean SQLite as well. You can run this code in the SQLite 3 command line interface and create an identical users table as well. In the marked section of the screenshot below, you can find the SQL code. I added name and country field, set their Type to TEXT and checked the Not null checkboxes. I named the field id, changed the Type to INTEGER, checked the Not null, PK (Primary Key), AI (Auto Increment) checkboxes. Once you click on Add field button, you should see a new field as marked in the screenshot below. Now you can click on Add field button to add as many fields or columns on your table. If you want to follow along, users table it is. Using this window, you can create your first SQLite 3 table.Įnter the name of the table. Type in a filename and save it somewhere on your filesystem. You should see the following dialog window. In this section, I will show you the basics of SQLite 3 database with SQLite Browser graphical user interface.įirst click on New Database to create a new database using SQLite Browser. Getting Started with SQLite 3 using SQLite Browser SQLite Browser should start as you can see in the screenshot below. You should see a database icon as marked in the screenshot below. Now you can go to the Application Menu and search for SQLite Browser.