Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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


Ïà¹ØÎÊ´ð£º

ƽ°²Ò¹¸øÃ»ÊÕµ½ÀñÎïµÄGG &&MM ËÍ·Ö -MSSQL°æ

ƽ°²Ò¹¸øÃ»ÊÕµ½ÀñÎïµÄGG &&MM ÎÒÀ´ËÍÀñÎïÀ²¡£
ÊÕµ½ÀñÎïµÄ¾Í±ð½Ó·ÖÁË£¡ÒªÊǽӲ»µ½°Ñ×Ô¼ºµÄ³ôÍà×ÓÄóöÀ´£¬µÈÊ¥µ®ÀÏÈËÍíÉÏËÍÄã°É£¡
SF

bd

sf

À´jfµÄ

²»´©Íà×Ó

JAVA php JS MYSQL C# °æ¶¼·¢Í ......

Á½²¿MSSQL·þÎñÆ÷²»ÄÜ»¥Á¬ÄÜ·ñ²ÉÓÃÀëÏßÎļþͬ²½£¿

ÇëÎÊMSSQLÊÇ·ñÖ§³ÖÀëÏßÎļþµÄ·¢²¼ºÍ¶©ÔÄ£¿±ÈÈçÉú³Éͬ²½ÎļþºóÔÙ¸´ÖƵ½ÒªÍ¬²½µÄ·þÎñÆ÷½øÐÐͬ²½£¿
ûÓÐÕâôÏȽø°É

ÒýÓÃ
ÇëÎÊMSSQLÊÇ·ñÖ§³ÖÀëÏßÎļþµÄ·¢²¼ºÍ¶©ÔÄ£¿±ÈÈçÉú³Éͬ²½ÎļþºóÔÙ¸´ÖƵ½ÒªÍ¬²½µÄ·þÎñÆ÷½øÐÐ ......

ÔÚMSSQLÖÐдһ¸ö´¥·¢Æ÷,¼±ÓÃ

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

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

±í2£ºtb_small
×ֶΣºfalseID£¨Óëtb_bigµÄfalseID ......

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ºÅ