Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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´¦ÀíÈÕÆÚ´óÈ«

ÔÚoracleÖд¦ÀíÈÕÆÚ´óÈ«
  TO_DATE¸ñʽ  
Day:  
dd number 12  
dy abbreviated fri  
day spelled out friday  
ddspth spelled out, ordinal twelfth  
Month:  
mm number 03  
mon abbreviated mar   ......

³£ÓõÄһЩORACLEÃüÁî

²éÕÒÊý¾Ý¿âÖÐËùÓÐ×ֶΠ ÒÔ¶ÔÓ¦µÄ±í
select C.column_name,C.TABLE_NAME from dba_tab_columns C where owner=''
²éÿ¸ö¿ÆÄ¿class ·ÖÊýscroÇ°ÈýÃû
select id, name, class, scro
   from (select row_number() over(partition by class order by scro desc)  cnt,
    &n ......

oracleÐÞ¸ÄÓû§ÃÜÂë

1¡¢Ê¹ÓÃoracleÓû§µÇ¼£¬Á¬½ÓÊý¾Ý¿â
[oracle@wuzj ~]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Feb 26 12:06:29 2009
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
SQL> conn /as sysdba
Connected.
//²é¿´Óû§
SQL> select username,password from dba_users;
......

oracle½¨Á¢´¥·¢Æ÷ ʵÏÖ×ÔÔöʵÀý

create table TN_TEST(
       username varchar2(32),
       userpass varchar2(32),
       version  number
)
ÒªÇóÒ»:
TN_TEST±íÖÐ×Ö¶Îversion
ÿ´ÎÐÞ¸ÄTN_TEST±íÔò½²version×Ô¶¯¼ÓÒ»
½¨Á¢´¥·¢Æ÷Óï¾ä:
crea ......

Wrap¼ÓÃÜOracle´æ´¢¹ý³Ì



Wrap¼ÓÃÜOracle´æ´¢¹ý³Ì




 


 

   
Oracle×Ô´øµÄÄÚ²¿°ü´ó¶àÊý¶¼ÊǾ­¹ý¼ÓÃܵģ¬±È½ÏºÃÆ棬Á˽âÒ»ÏÂOracle½øÐмÓÃܵŤ¾ß¡£Ò»°ã¶¼Ê¹ÓÃwrap¹¤¾ß½øÐмÓÃÜ£¬Õâ¸öwrapµÄʹÓÃÓï
·¨·Ç³£¼òµ¥£¬Ö»ÓÐÊäÈëºÍÊä³öÁ½¸ö²ÎÊý£¬Ò²Ã»ÓжàÓàµÄ²Ù×÷¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ