天下站长网
首页
web编程
图形图象
数据库
服务器
站长专区
网络技术
网页设计
认证考试
在MySQLl中定义Boolean类型的字段
方法1:
可用用bool,其实mysql是用tinyint(1)来代替bool类型的
CREATE TABLE test(Col1 bool);
方法2
或者用枚举类型也可以达到这个效果
Published At
2006-01-01 14:35 UTC
Categories with
数据库类
Tagged with
bool
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus