Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > MySQL
|
MySQL General discussion about the MySQL database.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the MySQL section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 26th, 2004, 02:55 AM
Registered User
 
Join Date: Aug 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Transaction on MYSQL ??

hi..i'm a newbie in mysql. can anyone help me?how to do transaction on mysql with delphi. i was try with mysqloledb provider, but its not work. i recive message "the provider doesn't support ...". please help me.
thx..

 
Old September 9th, 2004, 01:17 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 128
Thanks: 0
Thanked 1 Time in 1 Post
Default

mysql doesn't support transaction like stored procedure in ms sql.
John

 
Old September 17th, 2004, 07:15 AM
Registered User
 
Join Date: Sep 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

greetings,
I've never used Delphi, always connect to MySQL using PHP, but transactions can be performed. There are two possibilities, either:
1. Use genuine transaction-safe ACID compliant tables such as InnoDB - http://dev.mysql.com/doc/mysql/en/InnoDB_overview.html
in conjunction with transaction syntax, BEGIN / ROLLBACK / COMMIT - http://dev.mysql.com/doc/mysql/en/In...rent_APIs.html
2. Use atomic operations with non-transaction-safe tables e.g. MyISAM - http://dev.mysql.com/doc/mysql/en/AN...nsactions.html

There are significant performance considerations but if you require full ACID compliance InnoDB is the way to go.

best of luck






Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Transaction k.manisha ASP.NET 1.0 and 1.1 Professional 2 January 24th, 2007 11:59 PM
Transaction Management azmatazz Biztalk 0 April 28th, 2005 07:17 AM
use of transaction log madhukp SQL Server 2000 1 July 16th, 2004 06:20 PM
Another Transaction question Gert SQL Server 2000 8 March 16th, 2004 02:44 PM
how to use Transaction ? locka ADO.NET 0 August 12th, 2003 08:48 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.