易截截图软件、单文件、免安装、纯绿色、仅160KB

日程安排生成的sql语句

select *
from
(select [id]=row_number() over (order by getdate()),
        date=convert(varchar(8),dateadd(dd,number,'2010-01-01'),112)
        from
        (select number from master..spt_values where type='p' )t ) X
join
(select '1' as id, 'A' as Col1 union all
  select '2' as id,'B' as Col1 union all
  select '3' as id ,'C' as Col1
  ) Y
on x.id % ( select count(*) + 1
 from ( select '1' as id union all
        select '2' as id union all
        select '3' as id ) M)
=y.id
order by x.id


相关文档:

规划院培训费用统计查询的sql语句

create or replace view pxfy_view as
select t1.form_id,t1.reserve as mid,t1.feiyong,t.cjpxr_name as full_name,1 as pxlx,t1.topic,t1.identity,
     t1.begin_time as CREATEDATE,t1.end_time as completedate,pv.city,pv.DEPT_ID
     from wf_oa_pxnb_cjry t,WF_OA_PX ......

SQL类型

SQL Server数据类型2009年02月02日 星期一 11:20数据类型是数据的一种属性,是数据所表示信息的类型。任何一种语言都有它自己所固有的数据类型,SQL Server提供一下25种固有的数据类型。 SQL Server数据类型一览表
  ·Binary [(n)]
·Varbinary [(n)]
·Char [(n)]
·Varchar[(n)]
· ......

用C#读SQL SERVER到控制台的简单示例

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
namespace ConsoleApplication4
{
class Program
{
static void Main(string[] args)
{
//sqlserver身份验证
//string sqlconn = "ser ......

access sql server 数据库 数据导出

昨天弄了一个比较棘手的问题。从网上下载了一个软件,他的数据库是access的,打开看了一下,感觉不错,适合我现在项目的需求,大部分能够满足我的项目需要,就想拿来主义。可是我们项目的数据库一直都是用的sqlserver,于是,就在网上疯狂的,找关于access转换为sqlserver的资料在这里我想说一下有关的注意事项:
数据库升 ......

个人总结的几条比较有意思的sql语句


 
--------------------------------------------------------------------
-- 作者:张爱国
-- 日期:2010-01-23 15:00:17
-- 描述: 一些比较有意思的SQL语句
-- Version:
--    Microsoft SQL Server 2005 - 9.00.3042.00 (Intel X86)
--    Feb  9 2007 22:47:0 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号