In MySQL, Can I put a restriction like below at database level?
I need to make sure
1. a specific column can only take either 'true' or 'false' values.
2. and exactly only one row should be having 'true' value?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…