SQL code:
sql2005£¬sql2008
SELECT
±íÃû=CASE WHEN a.colorder = 1 THEN d.name ELSE '' END,
±í˵Ã÷=CASE WHEN a.colorder = 1 THEN isnull(f.value, '') ELSE '' END ,
×Ö¶ÎÐòºÅ=a.colorder ,
×Ö¶ÎÃû=a.name ,
±êʶ=CASE WHEN COLUMNPROPERTY(a.id, a.name, 'IsIdentity') = 1 THEN '¡Ì' ELSE '' END ,
......
СµÜÊdzõѧÕß.
Ê×ÏÈ˵ÏÂÎÒµÄÇé¿ö,JSP¿ª·¢»·¾³ÒѾ½¨ºÃ,¿ÉÒÔ¿ª·¢JSPÒ³Ãæ,ÓõÄÊÇMS SQL 2000,Êý¾Ý¿âÒ²ÊÇûÎÊÌâµÄ.È»ºóÎÒÓÃJSPÁ¬½ÓSQL,È´Ò»Ö±²»³É¹¦.ÎÒÏÂÁËJDBCºÍODBCµÄÇŽÓ,²¢°²×°ÁË,È»ºóÏÂÁËJDBCµÄJAR°ü,·ÅÔÚD:\Tomcat 5.5\common\libÕâ¸öÎļþ¼ÐÀïÃæ.CLASSPATHµÄ±äÁ¿ÉèÖÃÊÇ.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tool.j ......
SQL code:
sql2005£¬sql2008
SELECT
±íÃû=CASE WHEN a.colorder = 1 THEN d.name ELSE '' END,
±í˵Ã÷=CASE WHEN a.colorder = 1 THEN isnull(f.value, '') ELSE '' END ,
×Ö¶ÎÐòºÅ=a.colorder ,
×Ö¶ÎÃû=a.name ,
±êʶ=CASE WHEN COLUMNPROPERTY(a.id, a.name, 'IsIdentity') = 1 THEN '¡Ì' ELSE '' END ,
......
´ó¼Ò·¢±íÒ»ÏÂ×Ô¼ºµÄÒâ¼û°¡£¡
1 ¿ªÔ´ÐÔ²»Ò»Ñù
2 Êý¾Ý¿âÈÝÁ¿ÐÔÄܽç±ð²»Äܲ¢ÂÛ
3 ¹«Ë¾¹æÄ£ÍêÈ«²»Ò»Ñù
OracleÄ¿Ç°ÊǹØϵÊý¾Ý¿âÖв¢·¢ÐÔÄÜ×îºÃµÄ£¬Ò²µÃµ½¹«ÖÚÈÏ¿É¡£
Mysql³äÆäÁ¿¿ÉÒÔËã¸öÖÐÐÍÊý¾Ý¿â
oracleÊÇÃæÏò´óÖÐÐÍÆóÒµÓ¦ÓõÄÊý¾Ý¿âϵͳ£¬¾ßÓнϸߺͽÏÍêÉƵÄÐÔÄÜ£¬µ«¶ÔÊý¾Ý¿â¹ÜÀíÔ±¾ßÓнϸߵÄÒªÇó¡£Ö ......
ÓÐÒ»¸ö±í a ( id ,c ,d) ºÍÒ»¸ö ±í b ( id ,a_id )
a±íºÍb±íµÄid¶¼ÊÇ ×Ô¶¯Ôö³¤µÄ
µ«ÔÚa±íÖвåÈëÊý¾ÝµÄʱºò ÄܰѸÃÊý¾ÝµÄ id ²åÈë b±íÖÐ ¡£
SQL code:
create trigger tri_tb_insert
on a
for insert
as
insert b(aid) select id from inserted
go
°ï¶¥»Ø¸´ÄÚÈÝÌ«¶ÌÁË£¡
SQL code:
crea ......
SQL code:
create
-----alter
proc AddNewAlm( @DID int ,
@UID int , @ATID int , @P1 int ,@P2 int, @SCIP nvarchar(20), @ATime datetime )
--returns int
as
begin
declare @IsHas int;
declare @AID int;
set @AID = 0;
update AlmInfoTmp set UID=UID where DID=@DID ......
×ܼǼÊý:200; ×ÜÒ³Êý:34; ÿҳ6 Ìõ;
Ê×Ò³ ÉÏÒ»Ò³ [1] [2] [3] [4] 5
[6] [7] [8] [9] [10] ÏÂÒ»Ò³ βҳ