Skip to content

Why use COALESCE in the sql4dm demo? #1

Open

Description

@blinkuz

Is it not possible to create a table with a primary key and that is self-increment?

Activity

  1. nullquery commented on Dec 19, 2019

    @nullquery
    Owner

    It is. But for the demonstration, I opted not to use that and instead show how to quickly retrieve a single value from the database.

    It's a good thing to think about: how do you want the ID to increment? Automatic incrementing may be good in some cases but it does work against you when you want to know the id of the row beforehand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions