Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ADO.NETµ÷ÓÃOracle´æ´¢¹ý³Ì?

Óиö´æ´¢¹ý³ÌÓÐÈý¸öInt²ÎÊýºÍÒ»¸öOut²ÎÊý.
Ö´ÐÐʱÏȽ«Ò»Ð©Êý¾Ý²åÈëµ½Ò»¸ö±íÖÐ.È»ºóÔÙ´Ó±íÖÐÈ¡³öÊý¾Ý½øÐÐÐÐתÁÐ,ºÏ¼ÆµÈÂß¼­.½«´¦Àí½á¹û·Åµ½Ò»¸ö±íÖÐ.²¢½«Idͨ¹ýOut²ÎÊý·µ»Ø.
µ«ÔÚÖ´ÐÐʱ¿ÉÒÔ»ñÈ¡µ½OutÖµ,µ«¾ÍÊÇû·¨´Ó±íÖлñÈ¡Êý¾Ý.ÅŲéºóÊÇÒòΪÎÞ·¨Íù±íÖвåÊý¾Ý,µ«´æ´¢¹ý³ÌÊǶԵÄ,²»ÂÛÊÇSQL Plus»¹ÊÇÇàÍܶ¼ÐÐ.¾ÍÊDz»ÄÜÓÃADO.NET»ñÈ¡µ½½á¹û.
´æ´¢¹ý³ÌÖÐÓжദCommit,Õâ¸öÓÐÓ°ÏìÂð?֮ǰµÄ´æ´¢¹ý³ÌÖÐûÓз´±íÖвåÊý¾ÝʱÊÇ¿ÉÄÜÖ´ÐеÄ.



ÎҵľÍÊÇÕâÑùµ÷ÓõÄ.
´úÂëûÎÊÌâ.
ÒòΪ֮ǰµÄ´æ´¢¹ý³Ì¶¼ÄÜÖ´ÐÐ.
ÎÊÌâÊÇÏÖÔÚÕâ¸ö´æ´¢¹ý³ÌÖÐÒªÉæ¼°µ½Èý¸ö±í,ÏȽ«Òª´¦ÀíµÄÊý¾Ý²åµ½A±íÖÐ,commit;,È»ºó´ÓÖÐÈ¡³ö²åÈëµÄÊý¾Ý½øÐÐÒ»¶¨µÄÂß¼­´¦Àíºó½«ÁÐÐÅÏ¢²åÈëµ½B±í,commit;,½«Êý¾Ý²åÈëµ½C±í,commit;,·µ»ØΨһ±êʶ·û.
ÔÚ´úÂëÖлñÈ¡±êʶ·û¸ù¾ÝB±íÖеÄÐÅÏ¢Éú³ÉSQLÓï¾ä,´ÓC±íÖÐÈ¡³öÊý¾Ý.
ÏÖÔÚÎÊÌâ¾ÍÊÇA,B,C±í¶¼Ã»ÓÐÊý¾Ý,µ«¿ÉÒÔ·µ»Ø±êʶ·û.

²¹³ä:
ÔÚSQL Plus ¼°ÇàÍÜÖпÉÒÔÕý³£Ö´ÐÐ.


¸Ðл¥ÉϵÄ,µ«ÎÊÌâÔÚÓÚ´æ´¢¹ý³ÌÔÚͨ¹ýADO.NETÖ´ÐÐʱ¾Í²»Íù±íÖвåÊý¾ÝÁË.

oracleÖд洢¹ý³Ì·µ»Ø½á¹û¼¯ÐèÒªÓÃÓα귵»Ø


ÎÊÌâÕÒµ½ÁË.
½«²åÈëÊý¾ÝµÄSql¸Ä³É×Ö·û´®ÐÎʽִÐоͿÉÒÔÁË.
ÕæÆæ¹Ö.

½â¾öÁ˾ͺÃ


Ïà¹ØÎÊ´ð£º

PHP Á¬½ÓOracle ³ö´í

<?php
  getenv("ORACLE_HOME");
  $conn=ocilogon("test","test","test_db");
  if($conn)  
  echo success;  
&nb ......

ÇóÖúORACLEÅúÁ¿Çå³ý±íÊý¾ÝµÄÎÊÌâ - Oracle / ¿ª·¢

±ÈÈçÎÒÓÐtestA¡¢testB¡¢testCÈý¸ö±í
ÎÒÏÖÔÚÐèҪдһ¸öÅú´¦Àí»òÕ߽ű¾¸ø±ðÈË ×÷ÓþÍÊÇÖ´ÐÐÕâ¶ÎÓï¾ä¿ÉÒÔÇå³ýÕâÈý¸ö±íÀïÃæµÄÊý¾Ý ¾ÍÊÇÒ»¸ö³õʼ»¯µÄÒâ˼
ÄÄλ¸ßÈË°ïÖúÏ°¡ Ò»¸öÊý¾Ý¿âС°×ÔÚ´ËÇó¾ÈÀ²
SQL code:
......

ÇóʹÓÃt-sqlÓï¾ä½«paradoxÊý¾Ýµ¼ÈëoracleµÄ°ì·¨

ʹÓÃt-sqlÓï¾ä½«sqlserver2kÊý¾Ýµ¼ÈëparadoxµÄ¹¦ÄÜÎÒÒÑʵÏÖ£¬ÓõÄÊÇinsert into ... from table in [ODBC][ODBC;Driver=SQL Server...]µÄ°ì·¨£¬µ±ÎÒ×¼±¸Èç·¨ÅÚÖÆÍê³Éparadoxµ¼Èëoracleʱȴ²»ÐУ¬²»±¨´íµ«ÊÇÖ´ÐкóÃ»Ó ......

lomboz eclipse ÖмÓÈëoracleµÄÎÊÌâ

ÔÚlomboz eclipseÖеÄwindow->show view->others->ÖеÄÔõÑù¼ÓÈëconnectivityÖеÄdata sourceÖÐÁ¬½ÓoracleʱֻÓÐ8,9,10ÕâÈý¸ö°æ±¾£¬ÔõÑù²ÅÄÜÁ¬½Óoracle11Õâ¸ö°æ±¾ÄØ£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿


......

Oracle´æ´¢¹ý³ÌµÄÎÊÌâ

Ò»¸ö´æ´¢¹ý³Ì£¬ÀïÃæÓÐÕâÑùµÄ¹¦ÄÜ£º
        ÔÚÊý¾Ý¿âÖÐÒ»¸ö±íAÖеÄÒ»¸ö×ֶμìË÷³öÒ»¸öÊýÖµ£¬±ÈÈç˵ÊÇ£º10
        È»ºó½«Æä¼Ó1,ÔÙ¸üлرíAÖС£

µ«ÊÇÎÒÓÃSQLµ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ