워드프레스 "콘텐츠 열람 전 자동 광고 시스템"을 통해, 특정 웹페이지를 열람하기 위해 먼저 봐야 하는 사전 광고를 원하는 위치에 자유롭게 배치/설정할 수 있습니다
How to create a searchable database of anything - easily and for free - Kims Media Press "Enter" to skip to content

How to create a searchable database of anything – easily and for free

cubesgaloregettyimages-1221823230
INchendio/Getty Images

I have a fairly massive collection of vinyl albums to keep track of. I need to be able to add new items, search items, view items, and even  — on rare occasions — delete items.

There are plenty of dedicated apps for that purpose — the cataloging of vinyl albums — but I like to use desktop tools I already have installed. One such tool is LibreOffice, the open-source office suite. This free tool includes a powerful database feature that allows you to create databases and GUIs for interacting with your databases.

Also: 5 stand-out LibreOffice features that make it my go-to office suite

I’ll show you how to create a database with LibreOffice Base, which is free and included with the LibreOffice office suite.

Are you ready for this?

Let’s go.

Creating your first database

What you’ll need: To create a database, you’ll need LibreOffice installed on your platform of choice (Linux, MacOS, or Windows) and an idea of how you want to design your database. I’ll demonstrate this process by creating a database to store information about an album collection.

If you’re using Linux, you can go to your desktop menu, search for LibreOffice Base, and click the launcher. If MacOS or Windows is your OS of choice, open the LibreOffice app, and click New > Database (or just click Base Database in the left sidebar).

Show more

In the resulting window, make sure “Create a new database” is selected and the embedded database type is HSQLDB Embedded. Once that’s confirmed, click Next.

Show more
The first page of the LibreOffice create database wizard.

Stick with the defaults here.

Screenshot by Jack Wallen/ZDNET

In the next window, stick with the defaults and click Finish.

Show more
The second page of the LibreOffice database creation wizard.

Another page where you need to stick with the default settings.

Screenshot by Jack Wallen/ZDNET

Also: 6 ways LibreOffice is better than Google Docs for serious writing work

You will then be prompted to give the database a name and select a location to house it. Take care of that and click Save.

Show more

Now comes the fun part.

Also: LibreOffice removes personal data from documents. Why that matters

Creating your first table

We’ve created our database; now we have to create a table. To do that, we’re going to call upon the wizard.

1. Open the wizard

From the main Base window (that is now opened to the new database we’ve created), click Use Wizard to Create Table.

A LibreOffice database open and ready for tables.

Now that our database has been created, we must create a table.

Screenshot by Jack Wallen/ZDNET

2. Select the fields for the table

In the resulting pop-up, we must create the fields for our table. Depending on what you’re planning to use the database for, you’ll want to click either Business or Personal for the category. Since I’m creating a database for my vinyl collection, I’ll select Personal. 

3. Add your fields

There’s an easy way to do this. Click the “Sample tables” drop-down and check through the list to see if there’s an option that matches your needs. For my database, I’ll select CD-Collection, which will populate the Available Fields pane with field options. Once you’ve done that, select one of the fields and then click the > arrow to add it. You can also click >> to add all the fields simultaneously. I don’t need all the fields, so I’ll add Notes, Artist, Format, AlbumTitle, RecordLabel, and ReleaseYear. Once you’ve taken care of that, click Next.

The first page of the LibreOffice table wizard.

You can create a table from scratch or use one of the samples to start.

Screenshot by Jack Wallen/ZDNET

Remember that if you go the custom route (instead of selecting from the list of samples), you’ll have to create the fields manually. This is why I suggest using one of the samples first.

Also: How to set the next style in LibreOffice and why you should

4. Types and formats

In the next window, you’ll find the types and formats are already set (because we’re using a sample table). This is a good chance to see how fields are created. Keep the defaults and click Next.

The second page of the LibreOffice table creation wizard.

We’re going to stick with the defaults.

Screenshot by Jack Wallen/ZDNET

5. Create the primary key

The primary key is a unique identifier for each record in a database that allows information to be linked from one table to another. By default, the wizard is set to automatically create a primary key. Stick with that, and click Next.

The third page of the LibreOffice table creation wizard.

A primary key is necessary for the database to function.

Screenshot by Jack Wallen/ZDNET

6. Create the table

Click Next and then click Finish to complete the process and create the table. 

The final page of the LibreOffice table creation wizard.

You’re ready to start adding data.

Screenshot by Jack Wallen/ZDNET

After finishing the wizard, the database will open, ready for entry. You’ll see it’s laid out with the fields you’ve added. You can click on the top left cell and start creating entries. 

The LibreOffice database data add page.

We’re ready to add data to our database.

Screenshot by Jack Wallen/ZDNET

And that’s it! You now have a database that can hold as many entries as you need. Make sure you save the database as you enter data, and then you can search, filter, and sort the information.

Next time, I will show you how to easily build a GUI to make data entry even easier.

Looking for the next best product? Get expert reviews and editor favorites with ZDNET Recommends.



Source : https://www.zdnet.com/home-and-office/work-life/how-to-create-a-searchable-database-of-anything-easily-and-for-free/