Home > Database > Mysql Tutorial > mysql字段设置某种情况下的特殊值

mysql字段设置某种情况下的特殊值

WBOY
Release: 2016-06-06 09:41:14
Original
972 people have browsed it

mysql

图片说明
是这样的,上传视频转码成功后url设置到videochangeurl字段,但是有不成功的情况,现在前辈想设置成false,这个字段是varchar类型的,而且前端页面判断是否转码失败jstl的话eq 'false',看着也奇怪,我心里觉得设置false不适合,但是又不好反抗前辈,就算反抗人家也根本不理会你,本着对自己负责,学习的态度,问问大家,这种情况怎么处理好。
ps:看了前两个回答,补充下,如果不上传视频的话,没视频的话为为空的,要区别开没不上传视频或者上传没成功

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