::: Zany's Homepage ::: Zany Wiki | »çÀÌÆ® ÅëÇÕ °Ë»ö
 
 
 

auto commit, start transaction test... #2

°Ô½ÃÆÇ
MySQL
ÀÛ¼ºÀÚ
helix
ÀÛ¼ºÀÏ
2013-12-10 14:18:14
ÀÐÀº¼ö
2735
ÆòÁ¡
   
Ç¥½Ã¿É¼Ç
HTML»ç¿ë | ÀÚµ¿BRűנ| °ø¹é¹®ÀÚÇã¿ë | °¡¿îµ¥Á¤·Ä | °íÁ¤Æø±Û²Ã | ÀÚµ¿URL¸µÅ© | ¸¶¿ì½º¼±ÅÃ
°ü·Ã¸µÅ©01
http://dev.mysql.com/doc/refman/5.0/en/innodb-transactions-with-different-apis.html 
CREATE TABLE customer (a INT, b CHAR (20), INDEX (a)) ENGINE=InnoDB;

START TRANSACTION;
INSERT INTO customer VALUES (10, 'Heikki');
COMMIT;

SET autocommit=0;
INSERT INTO customer VALUES (15, 'John');
ROLLBACK;

SELECT * FROM customer;
+------+--------+
| a    | b      |
+------+--------+
|   10 | Heikki |
+------+--------+
1 row in set (0.00 sec)

 °Ô½ÃÆÇ ±Û ¸ñ·Ï
No Subject Poster Hits Posted
14306 helix 3042 2018-05-07 01:47:31
13492 helix 3280 2016-07-06 02:36:36
9622 helix 4137 2014-10-31 10:55:42
8757 helix 3166 2014-07-04 13:14:50
8275 helix 3453 2014-05-06 10:34:10
helix 2735 2013-12-10 14:18:14
7043 helix 2479 2013-12-09 21:12:05
5008 helix 6245 2013-07-16 21:38:02
5007 helix 5337 2013-07-16 20:37:51
4608 helix 3847 2013-06-25 17:10:18
4239 helix 2318 2013-04-19 13:53:08
ÄÚ¸àÆ®
ÀÛ¼ºÀÚ
                       
 
zany.kr
  Copyright ¨Ï 2002-2010 Zany's Programming Lab. All Rights Not Reserved.
temporary This Page loads on 0.031 Secs