sql that usually used

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql that usually used相关的知识,希望对你有一定的参考价值。


向数据表中插入一年的日期:

insert into T_HOLIDAY
select SEQ_T_HOLIDAY.NEXTVAL xh,to_date(20160101,‘YYYYMMDD‘)+level-1 date_time,0 date_type from dual connect by level <367;

将日期为周六周日的更新为非工作日:

--星期日为1,星期六为7,工作日为2~6
update t_holiday set date_type=1 where to_char(date_time,‘D‘) in (1,7);


本文出自 “SUNSHINE” 博客,请务必保留此出处http://cangyu2013.blog.51cto.com/8493070/1844445

以上是关于sql that usually used的主要内容,如果未能解决你的问题,请参考以下文章

hint: not have locally. This is usually caused by another repository pushing

报错“Field pet in XXX.HelloController required a bean of type ‘XXX.Pet‘ that could not be found.“(代码片段

[2016-06-06]OMG美语笔记-What time do you usually rush out of school or work everyday?

MySQL: You are using safe update mode and you tried to update a table without a WHERE that uses a KE

mysql更新字段值提示You are using safe update mode and you tried to update a table without a WHERE that uses

images have the “stationarity” property, which implies that features that are useful in one region a