摘要:
select a.name,b.name from sys.columns as a join sys.types as b on a.system_type_id=b.system_type_id where object_id=(select object_id from sys.tables where name='c_PROJECT') 阅读全文
摘要:
--油表 select (select SUM(XiaoHaoLiang)as'油表消耗总值' FROM dbo.NengHaoYouBiao WHERE CaiJiRiQi between '2013-01-01' and '2013-12-30') as '油表消耗总值', --水表 (... 阅读全文