随笔分类 -  MSSQL_SERVER

摘要:0Feb 22 2006 4:26PMCONVERT(CHAR(19), CURRENT_TIMESTAMP, 0)102/22/06CONVERT(CHAR(8), CURRENT_TIMESTAMP, 1)206.02.22CONVERT(CHAR(8), CURRENT_TIMESTAMP, ... 阅读全文
posted @ 2014-10-30 17:32 Leon719 阅读(305) 评论(0) 推荐(0)
摘要:1、多条件 查询 上下级 所有数据 select * from OrgUnit where (ParentId = '3' or OrgId='3' or ParentId in (select OrgId from OrgUnit where ParentId='3'))2、相同列数的 多个查询结... 阅读全文
posted @ 2014-08-20 10:28 Leon719 阅读(182) 评论(0) 推荐(0)