Skip to content

Where can I find more info about the UNIQUE (unique DESC) sql syntax? #6839

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
adriancuadrado opened this issue Apr 15, 2025 · 0 comments
Open
Labels
docs Documentation creation, updates or corrections

Comments

@adriancuadrado
Copy link
Contributor

adriancuadrado commented Apr 15, 2025

I was reading this article when I stumbled upon this SQL:

CREATE TABLE `Unique` (
  `unique` INT,
  CONSTRAINT `Unique_unique_key` UNIQUE (`unique` DESC)
)

I didn't know you could specify (`unique` DESC), but when I went to do some research about it I couldn't find any documentation in Postgresql.

@adriancuadrado adriancuadrado added the docs Documentation creation, updates or corrections label Apr 15, 2025
@adriancuadrado adriancuadrado changed the title Where can I find more info about CONSTRAINT Unique_unique_key UNIQUE (unique DESC)? Where can I find more info about `CONSTRAINT Unique_unique_key UNIQUE (unique DESC)`? Apr 15, 2025
@adriancuadrado adriancuadrado changed the title Where can I find more info about `CONSTRAINT Unique_unique_key UNIQUE (unique DESC)`? Where can I find more info about the "UNIQUE (unique DESC)" sql syntax? Apr 15, 2025
@adriancuadrado adriancuadrado changed the title Where can I find more info about the "UNIQUE (unique DESC)" sql syntax? Where can I find more info about the UNIQUE (unique DESC) sql syntax? Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation creation, updates or corrections
Projects
None yet
Development

No branches or pull requests

1 participant