Home > Backend Development > PHP Tutorial > 小弟我这个如何做比较好呢

小弟我这个如何做比较好呢

WBOY
Release: 2016-06-13 13:35:04
Original
833 people have browsed it

我这个怎么做比较好呢?
我的房间状态有空,入住,预定,停用。
空,入住和停用这三个状态是并列的,空和入住的时候都是可以预定的。
现状是房间表中有一个列是房间状态status,取值可以是空,入住,停用,当天是否被预定的状态放在status中还是放在另一个列中好?


------解决方案--------------------
status
0,1,2
------解决方案--------------------
如果有并列状态,那当然是拆分成多列或多表
------解决方案--------------------
就放在status列中啊。要不然你要status干什么?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template