MySQL Forums
Forum List  »  Newbie

Re: The Check Command - MySQL?
Posted by: Rick James
Date: March 24, 2015 09:47PM

You could switch to
country ENUM ('unknown', 'Hong Kong', 'India',
'Japan', 'Peru','Philippines', 'Singapore',
'United States')

After an INSERT, SHOW WARNINGS. If you insert something not in the list, it will have something like
Code: 1265
Message: Data truncated for column ...

Options: ReplyQuote


Subject
Written By
Posted
March 24, 2015 02:30PM
Re: The Check Command - MySQL?
March 24, 2015 09:47PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.