From the course: PostgreSQL Essential Training
Unlock the full course today
Join today to access over 23,200 courses taught by industry experts.
Enforce referential integrity on related records - PostgreSQL Tutorial
From the course: PostgreSQL Essential Training
Enforce referential integrity on related records
- [Narrator] We've created a schema, inserted some tables, and established a relationship between those two tables. Now, let's test out the entire system by adding data to the Kinetico database. Let's start with the categories table. Select anything in the tree inside of the Kinetico database and then click the Query Tool button. I'll start with the query Select * FROM manufacturing.categories. Click the Execute button to run the query to see the results in the Data Output pane. Here, we get the column structure for the table. Notice these pencil icons. These mean that this table is editable right here in the Output window, and we can add values using this graphical interface. In previous videos, we used the Insert Query to add data to a table but had to write out the command manually. This is another example of how the graphical interface can make working with a Postgres database a little bit easier for new users. So…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Organize tables with schemas6m 35s
-
(Locked)
Create a table with pgAdmin6m 57s
-
(Locked)
Link primary and foreign keys6m 38s
-
(Locked)
Enforce referential integrity on related records6m 24s
-
(Locked)
Challenge: Execute a command on the Postgres server55s
-
(Locked)
Solution: Execute a command on the Postgres server5m 19s
-
(Locked)
-
-
-
-