oracleÁ½ÕÅÊý¾Ý±íµÄ³éÈ¥ÎÊÌâ - Oracle / ¿ª·¢
Á½ÕÅÏàͬµÄÊý¾Ý±í£¨½á¹¹Ïàͬ£©A±í¡¢B±í ÎÒ´Ó±íAÖвéѯµ½µÄÊý¾Ý±£´æµ½Ò»¸öDataset ÀȻºó°ÑDatasetÀïÃæµÄÊý¾ÝÈ«²¿Ìí¼Óµ½BÀïÔõôʵÏÖ¡£ ÎÒÕâÑùʵÏÖÔõô´ÓA±í²éѯµ½µÄÊý¾ÝÌí¼Ó²»µ½BÀïÈ¥ÄØ£¿ DataSet dsExp = Query(conExp,sqlExp);ÕâÒ»²½Ã»ÎÊÌâÊý¾Ý¿ÉÒÔ»ñÈ¡µ½¡£ String sql="select * from jp_kss"; OracleDataAdapter command =new OracleDataAdapter(sql,conn); OracleCommandBuilder custcb =new OracleCommandBuilder(command); conn.Open(); command.fill(dsExp); command.Update(dsExp); conn.Close();
insert into B SELECT * from A ; Á½ÕÅ±í²»²»ÔÙͬһ¸öʵÀýÀï²»ÄÜÓÃinsert into ÒýÓà Á½ÕÅ±í²»²»ÔÙͬһ¸öʵÀýÀï²»ÄÜÓÃinsert into ¿ÉÒÔ£¬Ç°ÌáÊÇÒª´´½¨Ò»¸ödblink£¡È»ºó insert into B SELECT * from A@your_dblink_name; Â¥ÉÏËٶȿÉÒÔ¡£¡£¡£¡£¡£
Ïà¹ØÎÊ´ð£º
ÎÒÊÇÓÃÔ¶³Ì×ÀÃæÁ¬²Ù×÷·þÎñÆ÷ÉϵÄÊý¾Ý¿â¡£ ÔÚ´´½¨Ò»¸öÓû§Ö®ºó£¬ÔÙÓÃPLSQLµÇ¼£¬ÔòPLSQLËÀµôÁË¡£ ÎҹصôPLSQLÖ®ºó£¬ÓÃÆäËûÓû§Ò²²»ÄܵǼ¡£ ÎÒ°ÑoracleµÄ·þÎñÍ£Ö¹£¬½á¹û¾ÍÊÇoracleµÄ·þÎñ״̬¾ÍÍ£ÁôÔÚ¡°Í ......
´ó¼ÒºÃ,ÎÒÏÖÔÚ°Ñoracle·þÎñÆ÷ÉÏÃæµÄÔʼÎļþ,ÏÂÔص½±¾»úÁË.ÎÒÏëÔÚ±¾»ú·ÃÎÊÊý¾Ý¿âÔõôÉèÖð¡.ÊDz»ÊÇÀàËÆ¿ÉÒÔ½¨Á¢Ò»¸öʲôÐéÄâ·þÎñÆ÷À´ÊµÏÖ.Çë´ó¼Ò³ö³öÖ÷Òâ ÒýÓà ´ó¼ÒºÃ,ÎÒÏÖÔÚ°Ñoracle·þÎñÆ÷ÉÏÃæ ......
¼ÙÉètable01 ÖÐÓÐ ÒÔÏÂ×ÊÁÏ emp_no emp_name ------- ------------ 0001 TOM 0002 JOHN 0003 MARY ³£Óõ绰 ¶øÎÒÃÇÒªµÃµ½ÒÔϵÄOUTPUT (»òÊǸ÷ÖÖÆäËûµÄoutput) 0001,TOM 0002,JOHN
......
oracle ͨ¹ýBDlink Á¬½Óµ½Ò»Ì¨MS SQL,²éѯ¶¼¿ÉÒÔ,µ«ÊDz»ÖªµÀÈçºÎÔÚoracleͨ¹ýDBLinkµ÷ÓÃMS SQLµÄ´æ´¢¹ý³Ì,Çó½â~лл~ ÒýÓà oracle ͨ¹ýBDlink Á¬½Óµ½Ò»Ì¨MS SQL,²éѯ¶¼¿ÉÒÔ,µ«ÊDz»ÖªµÀÈçºÎÔÚoracleͨ¹ýDBLinkµ÷ÓÃM ......
1.ÏÖÔÚϵͳÊÇ64λµÄserver2003£¨web·þÎñÆ÷IIS6.0£©×°µÄÊÇ10gµÄoracle¿Í»§¶Ë¡£ 2.Êý¾Ý¿â·þÎñÆ÷ͬÑùÊÇ32λµÄserver2003µÄoracle10g¡£ 3.web·þÎñÆ÷ÉÏÓÃsqlplus·ÃÎÊÊý¾Ý¿â-Õý³££» vs2008ÄÚ²¿½¨Á¢Êý¾ÝÔ´£¬·ÃÎÊ ......