sql¸ù¾Ý»ù±íÅúÁ¿ÐÞ¸Ä×Ó±í
update ×Ó±íÃû
set ÒªÐ޸ĵÄ×Ó±í×Ö¶Î=b.»ù±íÖÐÒªÌí¼Óµ½×Ó±íÖеÄ×Ö¶Î
from ×Ó±íÃû,(select ×Ó±íÃû.ÒªÐ޸ĵÄ×Ó±í×Ö¶Î,»ù±íÃû.Òª²Î¼Ó±È½ÏµÄ×Ö¶Î from ×Ó±íÃû,»ù±íÃû where »ù±íÃû.Òª²Î¼Ó±È½ÏµÄ×Ö¶Î=×Ó±íÃû.×Ó±íÖÐÒª²Î¼Ó±È½ÏµÄ×Ö¶Î)as b
where b.»ù±íÖÐÒª²Î¼Ó±È½ÏµÄ×Ö¶Î=×Ó±íÒª²Î¼Ó±È½ÏµÄ×Ö¶Î
Èç
update Ä£°å200909
set ³öÇÚÌìÊý=b.´ÎÊý
from Ä£°å200909,(select °²¼àͳ¼Æ.´ÎÊý,°²¼àͳ¼Æ.¹¤ºÅ from Ä£°å200909,°²¼àͳ¼Æ where °²¼àͳ¼Æ.¹¤ºÅ=Ä£°å200909.Ö°ºÅ)as b where b.¹¤ºÅ=Ö°ºÅ
Ïà¹ØÎĵµ£º
index.jsp
<%@ page language="java" import="java.sql.*" import="java.lang.*" import="java.util.*" pageEncoding="GB2312"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%!
& ......
Ò»¡¢SQL SERVER ºÍACCESSµÄÊý¾Ýµ¼Èëµ¼³ö
³£¹æµÄÊý¾Ýµ¼Èëµ¼³ö£º
ʹÓÃDTSÏòµ¼Ç¨ÒÆÄãµÄAccessÊý¾Ýµ½SQL Server£¬Äã¿ÉÒÔʹÓÃÕâЩ²½Öè:
¡¡¡¡¡ð1ÔÚSQL SERVERÆóÒµ¹ÜÀíÆ÷ÖеÄTools£¨¹¤¾ß£©²Ëµ¥ÉÏ£¬Ñ¡ÔñData Transformation
¡¡¡¡¡ð2Services£¨Êý¾Ýת»»·þÎñ£©£¬È»ºóÑ¡Ôñ czdImport Dat ......
ÊìϤSQL SERVER 2000µÄÊý¾Ý¿â¹ÜÀíÔ±¶¼ÖªµÀ£¬ÆäDTS¿ÉÒÔ½øÐÐÊý¾ÝµÄµ¼Èëµ¼³ö£¬Æäʵ£¬ÎÒÃÇÒ²¿ÉÒÔʹÓÃTransact-SQLÓï¾ä½øÐе¼Èëµ¼³ö²Ù×÷¡£ÔÚTransact-SQLÓï¾äÖУ¬ÎÒÃÇÖ÷ҪʹÓÃOpenDataSourceº¯Êý¡¢OPENROWSET º¯Êý£¬¹ØÓÚº¯ÊýµÄÏêϸ˵Ã÷£¬Çë²Î¿¼SQLÁª»ú°ïÖú¡£ÀûÓÃÏÂÊö·½·¨£¬¿ÉÒÔÊ®·ÖÈÝÒ×µØÊµÏÖSQL SERVER¡¢ACCESS¡¢EXCELÊý¾Ýת»»£ ......
Using Oracle Index Hints in SQL statements
Hints are used to give specific information that we know about our data and application, to Oracle. This further improves the performance of our system. There can be instances where the default optimizer may not be efficient for a certain SQL statements. W ......
×÷Õß: ÈýÊ®¶øÁ¢Ê±¼ä£º2009Äê10ÔÂ17ÈÕ 16:47:21Çë×ðÖØÔ´´×÷Æ·¡£×ªÔØÇë±£³ÖÎÄÕÂÍêÕûÐÔ,²¢ÒÔ³¬Á´½ÓÐÎʽעÃ÷Ôʼ×÷Õß¡°inthirties£¨ÈýÊ®¶øÁ¢£©¡±ºÍ³ö´¦¡±http://blog.csdn.net/inthirties/archive/2009/10/17/4688273.aspx¡±,ÉîÈëÌÖÂÛ¿ÉÒÔÁªÏµinthirties@gmail.com¡£ÔÚOracleµÄ¿ª·¢¹ÜÀíÖУ¬PLSQLdev/TODA ºÍOracle sql devel ......