Skip to content
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

💡 MySQL: add supproting for CHECK constraint #90

Open
roxblnfk opened this issue Dec 21, 2022 · 0 comments
Open

💡 MySQL: add supproting for CHECK constraint #90

roxblnfk opened this issue Dec 21, 2022 · 0 comments
Assignees
Labels
type: feature New feature.

Comments

@roxblnfk
Copy link
Member

I have an idea!

CREATE TABLE Customers
(
  Age INT DEFAULT 18 CHECK(Age >0 AND Age < 100),
)

Or

CREATE TABLE Customers
(
    Age INT DEFAULT 18,
    CHECK((Age >0 AND Age<100) AND (Email !='') AND (Phone !=''))
);

See

@roxblnfk roxblnfk added the type: feature New feature. label Dec 21, 2022
@roxblnfk roxblnfk self-assigned this Dec 21, 2022
@roxblnfk roxblnfk added this to Cycle Dec 21, 2022
@roxblnfk roxblnfk moved this to Todo in Cycle Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature New feature.
Projects
Status: Todo
Development

No branches or pull requests

1 participant