日期:2014-05-18  浏览次数:20527 次

关于农历转公历基础资料表的问题
看到插入的基础字段都代表什么意思啊,有点不懂请指点:
SQL code

--创建基础数据表
if object_id('SolarData') is not null
    drop table SolarData
go
create table SolarData  
(  
  yearid int not null,  
  data char(7) not null,  
  dataint int not null  
)   
--插入数据  
insert into   
SolarData select 1900,'0x04bd8',19416 union all select 1901,'0x04ae0',19168  
union all select 1902,'0x0a570',42352 union all select 1903,'0x054d5',21717  
union all select 1904,'0x0d260',53856 union all select 1905,'0x0d950',55632  
union all select 1906,'0x16554',91476 union all select 1907,'0x056a0',22176  
union all select 1908,'0x09ad0',39632 union all select 1909,'0x055d2',21970  
union all select 1910,'0x04ae0',19168 union all select 1911,'0x0a5b6',42422  
union all select 1912,'0x0a4d0',42192 union all select 1913,'0x0d250',53840  
--后面省略。。。


1900,'0x04bd8',19416,其中‘1900’代表时年份,‘0x04bd8’和‘19416 ’表示什么??请高手解答。

------解决方案--------------------
参考下,学习!
http://topic.csdn.net/u/20100425/14/130c343b-03aa-4c20-8a93-a72020ee610f.html

http://topic.csdn.net/u/20100424/07/29529d9d-bc54-4877-b198-4426b4d85024.html?3905
------解决方案--------------------
看看这个http://blog.csdn.net/luodongshui/article/details/1777478

其实这一切的根源来源于这里http://site.baidu.com/list/wannianli.htm的源文件(在此网页上右键查看源文件就可以看到那些让人乍一看就头疼的代码了)
=========================================================================================

欢迎访问我的博客