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

[not graphile related] check char_length < N VS character varying (N) #16

Closed
mathroc opened this issue Sep 11, 2017 · 3 comments
Closed

Comments

@mathroc
Copy link

mathroc commented Sep 11, 2017

In the documentation I’ve noticed the length of first_name and last_name is validated with a check

I’ve usually have a column with a maximum length on the type, eg: character varying(100)

So I’m wondering, is there differences/benefits between those 2 methods ?

thank you (and sorry for being off topic)

@benjie
Copy link
Member

benjie commented Sep 12, 2017

Have a read of this:

https://stackoverflow.com/a/4849030/141284

@mathroc
Copy link
Author

mathroc commented Sep 12, 2017

thank you that’s what I was looking for

@mathroc mathroc closed this as completed Sep 12, 2017
@benjie
Copy link
Member

benjie commented Sep 12, 2017

You're welcome 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants