Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

MSSQLÖÐÈçºÎÑ¡ÔñÒ»ÐÐÖÐ×îСµÄʱ¼ä£¿

Ò»ÕÅ±í£¬×ֶηÖΪid,time1,time2,time3,time4,time5 

ÇëÎÊÎÒÓ¦¸ÃÈçºÎÑ¡ÔñIDΪ1µÄÄÇÌõ¼Ç¼ÖÐtimeʱ¼ä×îСµÄֵĨ£¿
UP!

[code=SQL][/code]select min(t) from 
(select time1 as t from t1 where id=1 union all
select time2 as t from t1 where id=1 union all
select time3 as t from t1 where id=1 union all
select time4 as t from t1 where id=1 union all
select time5 as t from t1 where id=1 ) as tb

[code=SQL][/code] select min(t) from 
(select time1 as t from t1 where id=1 union all
select time2 as t from t1 where id=1 union all
select time3 as t from t1 where id=1 union all
select time4 as t from t1 where id=1 union all
select time5 as t from t1 where id=1 ) as tb

Óö¯Ì¬Á¬½ÓÒ»ÏÂ×Ö·û´®

ÔΡ£¡£¡£Õâô¶àµÄSQLÓï¾ä°¡¡£¡£ÄÇÖ´ÐÐÆðÀ´Ëù»¨µÄʱºòÊDz»ÊǺܶడ¡£¡£¡£

SQL code:
----------------------------------------------------------------
-- Author :SQL77(ֻΪ˼ÆëÀÏ)
-- Date :2010-01-26 19:29:35
-- Version:
-- Microsoft SQL Server 2000 - 8.00.194 (Intel X86)
-- Aug 6 2000 00:57:48
-- Copyright (c) 1988-2000 Microsoft Corporation
-- Desktop Engine on Windows NT 5.1 (Build 2600: Service Pack 3)
--
----------------------------------------------------------------
--> ²âÊÔÊý¾Ý£º#TB
if object_id('TB') is not null drop table TB
go
cr


Ïà¹ØÎÊ´ð£º

MSSqlÊý¾Ý¿â±»¹ÒÂí

ÏÖÓÐÒ»¸öASP+mssqlµÄÍøÕ¾£¬±»¹ÒÂíÁË£¬½«ÀïÃæÒ»¸ö±íÖеÄntext×ֶιÒÂí¹ÒÂí£¬¡°<script src=http://ľÂíµØÖ·></script>¡±,µÄ·½Ê½ÊÇ£¬²»¶ÏµØÐ޸ĸÃ×ֶεÄÖµ£¬Ö±½Ó¼ÓÔÚ×îºóµÄ£¬Ê±¼ä³¤ÁË£¬¿ÉÒÔ¿´µ½¸Ã×Ö¶ÎÖÐÓÐ ......

MSSQL 2008 °²×°ÎÊÌâ

°²×°¹ý³Ìʱû³öÏÖ´íÎóÌáʾ¡£ Ò»Ö±µ½½áÊø£¬Ôò˵MSSQL û°²×°³É¹¦

Summary.txt ÄÚÈÝÈçÏ£º

Overall summary:
  Final result:                  ......

ÔÚMSSQLÖÐдһ¸ö´¥·¢Æ÷

±íµÄ½á¹¹ÈçÏ£º

±í1£ºtb_big
×ֶΣºfalseid Öµ£º1£¬2£¬
×ֶΣºbigtype Öµ£ºA£¬B£¨ÓëfalseidµÄÖµµÄλÖÃÒ»Ò»¶ÔÓ¦£¬¼´1¶ÔÓ¦A£¬2¶ÔÓ¦B£©

±í2£ºtb_small
×ֶΣºfalseid£¨Óëtb_bigµÄfalseid_1¹ØÁªµ ......

MSSQLÊý¾Ý¿âDayHits×Ô¶¯ÇåÁã

ÈçÌ⣬ÈçºÎÈÃÊý¾Ý¿âÖÐÿÈյĵã»÷Êý¼Ç¼ÔÚ24£º00×Ô¶¯ÇåÁ㣬²»ÓÃSQL¼Æ»®ÈÎÎñʵÏÖ£¬ÒòΪÎÒÎÞ·¨¹ÜÀíSQL·þÎñÆ÷£¬ÎÒÏëͨ¹ýGlobal.ascxʵÏÖ£¬¾ßÌå²»ÖªµÀÔõô×ö¡£
ÎÊÌâÓеãÄÑ


using System.Timers;

private s ......

Á¬½ÓMSSQLµÄÎÊÌâ

ÎÒµÄjava³ÌÐòÒªÁ¬½ÓÔ¶³ÌµÄÊý¾Ý¿âMSSQL£¬µ«ÊÇÔ¶³Ì·þÎñÆ÷£¬Ã»Óпª1433¶Ë¿Ú£¬ÓÐʲô°ì·¨ÄÜÈÃÎÒµÄjava³ÌÐòÁ¬½ÓÔ¶³ÌÊý¾Ý¿â
ÊÇ˵mysqlÂð£¿


ÎÒÒ²Óöµ½ÁËÕâ¸öÎÊÌ⣬ÎÒÒ²ÏëÇó½â¾ö£¬ºÇºÇ£¬°ïÄã¶¥¶¥£¡

MSSQL,¾ÍÊÇ΢Èí ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ