Skip to content

Bug Report for sql-delete-returning #5601

@vishalreddy074

Description

@vishalreddy074

Bug Report for https://neetcode.io/problems/sql-delete-returning

Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.

Below is the command mentioned in the SQL-delete- returning section.
DELETE FROM users
WHERE username = NULL;
RETURNING id, username, email;

There is a misplaced semicolon (;) after NULL. That semicolon should be removed. There should be only one semicolon at the end of the SQL statement. Here, the end of the statement is after the 'returning' section to notify the database that the statement is finished.

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