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

Oracle CommitÓ÷¨

µÚÒ»¸öbug fix Óõ½ OracleµÄUpdateÓï¾ä
update  Table1 set Web=-1 where ProgID=N‘123’
CodeReview ʱ
Do we need a COMMIT; in the Oracle version?
ÉÏÍø²éÁËÒ»ÏÂOracle COMMITÓ÷¨
COMMIT
Purpose
Use the COMMIT statement to end your current transaction and make permanent all changes performed in the transaction. A transaction is a sequence of SQL statements that Oracle Database treats as a single unit. This statement also erases all savepoints in the transaction and releases transaction locks.
Until you commit a transaction:
You can see any changes you have made during the transaction by querying the modified tables, but other users cannot see the changes. After you commit the transaction, the changes are visible to other users' statements that execute after the commit.
You can roll back (undo) any changes made during the transaction with the ROLLBACK statement (see ROLLBACK.
Oracle Database issues an implicit COMMIT before and after any data definition language (DDL) statement.
You can also use this statement to
Commit an in-doubt distributed transaction manually
Terminate a read-only transaction begun by a SET TRANSACTION statement
Oracle recommends that you explicitly end every transaction in your application programs with a COMMIT or ROLLBACK statement, including the last transaction, before disconnecting from Oracle Database. If you do not explicitly commit the transaction and the program terminates abnormally, then the last uncommitted transaction is automatically rolled back.
A normal exit from most Oracle utilities and tools causes the current transaction to be committed. A normal exit from an Oracle precompiler program does not commit the transaction and relies on Oracle Database to roll back the current transaction.


Ïà¹ØÎĵµ£º

OracleÖÐDecode()º¯ÊýʹÓü¼ÇÉ

OracleÖÐDecode()º¯ÊýʹÓü¼ÇÉ
¡¡¡¡decode()º¯ÊýÊÇORACLE PL/SQLÊǹ¦ÄÜÇ¿´óµÄº¯ÊýÖ®Ò»£¬Ä¿Ç°»¹Ö»ÓÐORACLE¹«Ë¾µÄSQLÌṩÁ˴˺¯Êý£¬ÆäËûÊý¾Ý¿â³§É̵ÄSQLʵÏÖ»¹Ã»Óд˹¦ÄÜ¡£
      DECODEº¯ÊýÊÇORACLE PL/SQLÊǹ¦ÄÜÇ¿´óµÄº¯ÊýÖ®Ò»£¬Ä¿Ç°»¹Ö»ÓÐORACLE¹«Ë¾µÄSQLÌṩÁ˴˺¯Êý£¬ÆäËûÊý¾Ý¿â³§É̵ÄSQLÊµÏ ......

OracleµÄSQLÓï¾äÖÐÈçºÎ´¦Àí¡®&¡¯·ûºÅ

ÔÚOracleÖУ¬Èç¹ûÔÚsqlÖгöÏÖ'&'·ûºÅ£¬»á±»×Ô¶¯×ªÒ壻
¶ø±»ÒªÇóÊäÈëÔÚ&·ûºÅºó¸úËæµÄ×Ö·û´®µÄÖµ£¬ÀýÈ磺
update tablename set columnName='http://www.g.cn/cv2.jsp?spid=222&cid=333';
Ö´ÐÐÕâ¸ö²Ù×÷ʱ£¬Oracle»áÌáʾ
Enter value for cid:
Ô­ÒòÊÇÔÚOracleÖÐ & ·ûºÅÊÇ×÷ΪתÒå×Ö·ûʹÓõġ£
½â¾ö·½·¨ ......

oracle н¨Óû§¡¢±í¿Õ¼ä¡¢ÊÚȨ

1£®½¨±í¿Õ¼ä
create tablespace OSDB datafile 'F:\oracle\oradata\glsqjz\OSDB.ora' size 100m reuse default storage(initial 500k next 500k pctincrease 20);
2£®½¨Óû§
create user OSUSER identified by OSUSER;//identified by ºóÃæµÄÊÇÃÜÂë£¬Ç°ÃæµÄÊÇÓû§Ãû
3£®Óû§ÊÚȨ
grant resource,connect,RECOVERY ......

ÔõÑù½«excelÖеÄÊý¾Ýͨ¹ýPL/SQLµ¼ÈëORACLEÊý¾Ý¿âÖÐ

ÏêϸµØ²½Öè:


1¡¢´ò¿ªMicroSoft   Excel   2000  


2¡¢Îļþ(F)→н¨(N)→¹¤×÷²¾→  


3¡¢ÊäÈëÊý¾Ýºó£¬´æÅÌΪtest.xls£¬  


4¡¢Îļþ(F)→Áí´æÎª(A)→  


±£´æÀàÐÍΪ£ºÖƱí·û·Ö¸ô£¬ÆðÃûΪtext.txt£¬±£´æµ½C:\ &nb ......

Oracle EBS: EBS³£ÓÃSQL


Oracle EBS: EBS³£ÓÃSQL
×î½üÒ»Ö±ÔÚæÓÚ×öEBSµÄ¶þ´Î¿ª·¢£¬Àë²»¿ªÆ´Æ´湊湊µÄSQLÓï¾ä. ÕâЩ¶¼ÊÇ´ó¼Ò³£ÓõÄһЩSQL£¬Óë´ó¼Ò·ÖÏí,»¶Ó­Ö¸Õý.
/* Formatted on 2009-11-03 23:10:34 (QP5 v5.114.809.3010) */
--1²éÕÒϵͳÓû§»ù±¾ÐÅÏ¢ author:dezai
Select   USER_ID,
    &nb ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ