1)mysql表:t_insert,表中字段:time_key decimal(22,0)(日期) fulldate_key datetime(不同格式日期) calendar_quarter int(该日期属于一年中第几个季节)2)要求:
假如输入20110101日期调用存储过程,实现效果如下:
time_key fulldate_key calendar_quarter
20110101 2011-01-01 00:00:00 4
20110102 2011-01-02 00:00:00 4
20110103 2011-01-03 00:00:00 4
20110301 2011-03-01 00:00:00 1
20110302 2011-03-02 00:00:00 1
如此类推大家帮帮忙。。
假如输入20110101日期调用存储过程,实现效果如下:
time_key fulldate_key calendar_quarter
20110101 2011-01-01 00:00:00 4
20110102 2011-01-02 00:00:00 4
20110103 2011-01-03 00:00:00 4
20110301 2011-03-01 00:00:00 1
20110302 2011-03-02 00:00:00 1
如此类推大家帮帮忙。。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货