Aan de slagGa gratis aan de slag

Boolean defaults

A BOOLEAN column defaulting to null is not always desired. In some situations, a default value of true might be preferred. Imagine a user management system built for a website. The default behavior is to authorize a newly registered user to access the website. This access remains available unless the user exhibits poor community behavior. Including an approved column on a user table in this database enables such a process. This column is true by default in this scenario.

Deze oefening maakt deel uit van de cursus

Creating PostgreSQL Databases

Cursus bekijken

Praktische interactieve oefening

Zet theorie om in actie met een van onze interactieve oefeningen.

Begin met trainen