Mysql
丽鸟
我要继续主动把握自己的生活过自己想要的生活-充实丰富多彩的生活
展开
-
Mysql数据库中or的使用
select * from table_a where c1=v1 or c2=v2 and c3=v3; 在Mysql数据库中先执行and,再执行or,如果先要执行or需要用括号括起来,如下: select * from table_a where (c1=v1 or c2=v3) and c3=v3原创 2016-03-15 14:19:44 · 1065 阅读 · 0 评论 -
mysql FAQ
mysql去掉字段默认值; ALTER TABLE rec_execution_spark ALTER COLUMN create_time DROP DEFAULT; mysql设置时间字段为当前系统时间 ALTER TABLE rec_execution_spark MODIFY COLUMN create_time DATETIME NULL DEFAULT CURRENT_TIME原创 2017-11-02 10:22:20 · 244 阅读 · 0 评论