Building applications
Databases
数据库
A database is an organised place to store application data and retrieve it quickly. In a relational database, data is kept in tables, each with set columns and many rows.
SQL is used to query the database, for example "give me all the words this user saved, newest first". Almost every developer needs its basics.
Tables are linked by keys: the personal dictionary table on this site holds the user's ID, so each word's owner is known without repeating the user's data in every row.
To protect data, row-level security is used so each user sees only their own rows; this is what keeps each student's dictionary on this site private.
Other key ideas are indexes that speed up searches, backups, and migrations: files that describe changes to the table structure in order, like the files run in Supabase for this site.
Ask the AI assistant
Ask anything about this lesson and get a simple answer with the terms in Chinese, Arabic and English.
The AI assistant runs on Google's Gemini model and can make mistakes. Do not write personal information. Available to signed-in learners, up to 30 requests a day.
The content is simplified and covers the basics only.