表名:PE_CommonModel
模型字段:ModelID
上传时间:UpdateTime
序号:GeneralID
功能:将2007-01-01到2010-08-01随机填到UpdateTime字段里,按照GeneralID升序和ModelID=3
比如:
GeneralID=1 UpdateTime=2007-01-01
GeneralID=1000 UpdateTime=2008-05-02
就是GeneralID值越大,日期离现在越近
模型字段:ModelID
上传时间:UpdateTime
序号:GeneralID
功能:将2007-01-01到2010-08-01随机填到UpdateTime字段里,按照GeneralID升序和ModelID=3
比如:
GeneralID=1 UpdateTime=2007-01-01
GeneralID=1000 UpdateTime=2008-05-02
就是GeneralID值越大,日期离现在越近
update PE_CommonModel set UpdateTime=dateadd(hh,'2007-01-01',(GeneralID -1 )*datediff(hh,'2007-01-01','2008-05-02')/1000)