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£¬Ã¿´Î²éѯ±È½ÏÂý£¬ÏÖÔÚÏëһϰÑËùÓмǼ²éѯ³öÀ´ÓÃÊý¾Ý¼¯±£´æÆðÀ´£¬È»ºóÕë¶ÔÊý¾Ý¼¯Ôٴβéѯɸѡ¡£
ÏÖÔÚÎÊÏÂÄǸöÊý¾Ý¼¯ÈçºÎ±£´æ²éѯ¼Ç¼£¬¶øÔٴβéѯ£¬¶àлÁË¡£
¿ÉÒÔ°ÑÊý¾Ý¼¯ÖеÄÊý¾Ý·Åµ½ÄÚ´ ......
ÈçÌâ ÓÐÆð²Ý ÉóºË »áÇ© ·¢ÎŦÄÜ
°ï¶¥
È¥ÍøÉÏÕÒÏÂÄÇÖÖÓÐÁ÷³ÌµÄÊý¾Ý¿âϵͳ ¶¼²î²»¶àµÄ
ÒýÓÃ
ÈçÌâ ÓÐÆð²Ý ÉóºË »áÇ© ·¢ÎŦÄÜ
¼Ó¸ö×Ö¶Î,±ê¼ÇÔÚʲô״̬¼´¿É.
Óг¥¿ª·¢¡¢Éè¼ÆÖ§³Ö£¬Ìṩ³ÖÐøµÄ·þÎñ
......
ÔÚwinxp2ÏÂÔõôÁ¬½Ómssql 2000°¡?²»ÊÇÒªÎÊ´úÂë.ÊÇÇý¶¯Ôõô½â¾ö.×ÜÊÇÌáʾÇý¶¯²»Æ¥Åä.ËÄܰïÎÒ½â¾öÏÂ???
¼ÇµÃÉý¼¶µ½SP3ÒÔÉϵİ汾
¼ÇµÃ¹ÙÍøÓÐÏÂÔØ
sp3ÊÇÖ¸mssqlÒªÉý¼¶ÊÇÂð?¿ÉÎÒÒ²ÉýÁË.
Java code ......
ÈçÌâ~
Çë¸÷λ´óϺָ½Ì~£¡
window xp/2003£¬Äã»áÅä²»£¿
ÏÖÔÚ×î´óµÄÀ§ÄѾÍÊÇÁ¬½ÓMSSQLµÄµØ·½£¡
Çë˵Ã÷°×ÔÚIIS7.5µÄÅäÖã¡WIN XPµÄ²»ºÏÊÊ£¬ÎÒÊÔ¹ýÁË
Ö±½Ó×°¸ö phpnow?
Ã²ËÆPHPNOW²»Ö§³ÖIIS7.5°É
php ......
´æ´¢¹ý³ÌÊÇÕâôдµÄ£¬
Declare @id int
BEGIN TRANSACTION
Insert into xxxxxTable(f1,f2)values(@a,@b)
Select @id=@@identit ......