2015年6月12日

Sql 中取小数点后面两位小数

摘要: select convert(numeric(8,2),round(UnTaxAmount,2))as UnTaxAmount from View_SaleVoiceselect cast(UnTaxAmount as decimal(20,2)) as UnTaxAmount from V... 阅读全文

posted @ 2015-06-12 18:05 选择大于努力 阅读(5677) 评论(0) 推荐(0) 编辑

常用SQL时间格式SQLServer中文版的默认的日期字段datetime格式是yyyy-mm-d

摘要: 常用SQL时间格式 SQL Server中文版的默认的日期字段datetime格式是yyyy-mm-dd Thh:mm:ss.mmm例如:select getdate()2004-09-12 11:06:08.177这对于在要不同数据库间转移数据或者习惯oracle日期格式YYYY-MM-DD HH... 阅读全文

posted @ 2015-06-12 17:55 选择大于努力 阅读(6337) 评论(0) 推荐(0) 编辑

导航