Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How To Commit the Current Transaction
How To Commit the Current Transaction? - MySQL FAQs - Transaction Management: Commit or Rollback
✍: FYIcenter.com
If you have used some DML statements updated some data objects, and you want to have the updates to be permanently recorded in the database, you can use the COMMIT command. It will make all the database changes made in the current transaction become permanent and end the current transaction. The following tutorial exercise shows you how to use COMMIT commands:
>\mysql\bin\mysql -u dev -piyf fyi mysql> START TRANSACTION; Query OK, 0 rows affected (0.01 sec) mysql> INSERT INTO fyi_links (url, id) VALUES ('fyicenter.com', 101); Query OK, 1 row affected (0.11 sec) mysql> INSERT INTO fyi_links (url, id) VALUES ('centerfyi.com', 110); Query OK, 1 row affected (0.00 sec) mysql> SELECT * FROM fyi_links; +-----+---------------+-------+--------+-------------------- | id | url | notes | counts | created +-----+---------------+-------+--------+-------------------- | 101 | fyicenter.com | NULL | NULL | 2006-07-01 20:27:49 | 110 | centerfyi.com | NULL | NULL | 2006-07-01 20:28:10 +-----+---------------+-------+--------+-------------------- 2 rows in set (0.07 sec) mysql> COMMIT; Query OK, 0 rows affected (0.04 sec)
2007-05-11, 4928👍, 0💬
Popular Posts:
How To Specify Two Background Images on a Page? - CSS Tutorials - Page Layout and Background Image D...
What are the five levels in CMMI? There are five levels of the CMM. According to the SEI, Level 1 – ...
.NET INTERVIEW QUESTIONS - How to prevent my .NET DLL to be decompiled? By design .NET embeds rich M...
What is the output of printf("%d")? 1. When we write printf("%d",x); this means compiler will print ...
What is Traceability Matrix? Traceability Matrix is one of the document will prepare by QA.To make s...