DatabaseIntegrate.org is a free, beginner-paced classroom for how applications talk to databases. Each page explains one idea with a small example. If you are new to databases, these are the questions most learners ask first.

About the site

Is DatabaseIntegrate.org really free?

Yes. Every lesson and both browser helpers are free, with no account, course fee or upgrade. The site carries display advertising.

Do I need to install anything to follow the lessons?

Not to read them. To practise, a small database such as SQLite runs on almost any computer without a server, and many lessons can be tried with it. The schema comparator and query builder work in your browser.

What if a lesson is confusing or wrong?

Tell us through the contact page. Saying which step lost you is just as useful as reporting a mistake. The editorial standards describe how lessons are written.

Beginner questions

What is a database, in plain words?

An organised store of information that a program can search and update safely, even when many people use it at once. Most beginner projects use a relational database, which keeps data in tables of rows and columns linked by keys.

What is SQL?

SQL, Structured Query Language, is the language most relational databases understand. You use it to create tables, add rows, ask questions such as "which orders were placed today?" and change data. The basics are the same across PostgreSQL, MySQL, SQLite and SQL Server, with small differences.

How does my app actually connect to the database?

Through a driver, a library for your programming language, using a connection string that says where the database is, which database to use and how to log in. Keep that string, especially the password, out of your code and out of version control, for example in an environment variable.

What is an ORM, and do I need one?

An object-relational mapper lets you work with database rows as objects in your language. It saves typing but hides the SQL it runs, so learning a little SQL first makes ORMs far easier to understand and debug.

What is SQL injection, and how do I avoid it?

It is an attack where text typed by a user is treated as part of an SQL command. Never build queries by gluing user input into strings. Use parameterised queries, also called prepared statements, which every mainstream driver supports.

How should I store passwords?

Never as plain text. Store a salted hash made with a password hashing function designed for the job. The lesson how should an app store passwords? explains why.

Where should I start?

Follow the five-step learning path, then plan a small project with from app idea to first tables. Words you do not know are in the beginner glossary, and the learning hub lists every lesson.