Re: START TRANSACTION COMMIT ROLLBACK

2009-10-28 Thread Michael Dykman
That is correct.  Many db interfaces off programmatic abstractions of
these facilities, but you may certainly just issue the statments.

START TRANSACTION

INSERT that
UPDATE that

on success: COMMIT

on error: ROLLBACK

 - michael dykman



On Wed, Oct 28, 2009 at 12:07 AM, Mosaed AlZamil mosza...@gmail.com wrote:
 Hello Everyone,
  I am a newbie using innodb.
 How can I implement  START TRANSACTION COMMIT ROLLBACK when I need to update
 two tables
 that are located in two different databases. Would a single  START
 TRANSACTION be sufficient ?
 Any help would be appreciated.
 TIA
 Mos




-- 
 - michael dykman
 - mdyk...@gmail.com

May you live every day of your life.
Jonathan Swift

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org



Re: START TRANSACTION COMMIT ROLLBACK

2009-10-28 Thread Martijn Tonies

Michael,

Does MySQL support multi-db transactions?

With regards,

Martijn Tonies
Upscene Productions
http://www.upscene.com

Download Database Workbench for Oracle, MS SQL Server, Sybase SQL
Anywhere, MySQL, InterBase, NexusDB and Firebird!

Database questions? Check the forum:
http://www.databasedevelopmentforum.com



That is correct.  Many db interfaces off programmatic abstractions of
these facilities, but you may certainly just issue the statments.

START TRANSACTION

INSERT that
UPDATE that

on success: COMMIT

on error: ROLLBACK

- michael dykman



On Wed, Oct 28, 2009 at 12:07 AM, Mosaed AlZamil mosza...@gmail.com wrote:

Hello Everyone,
I am a newbie using innodb.
How can I implement START TRANSACTION COMMIT ROLLBACK when I need to 
update

two tables
that are located in two different databases. Would a single START
TRANSACTION be sufficient ?
Any help would be appreciated.
TIA
Mos





--
- michael dykman
- mdyk...@gmail.com

May you live every day of your life.
   Jonathan Swift

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql?unsub=m.ton...@upscene.com


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org



Re: START TRANSACTION COMMIT ROLLBACK

2009-10-28 Thread Ye Yuan
Looks to me we should use XA transaction syntax instead. Check this:

http://dev.mysql.com/doc/refman/5.0/en/xa.html

Thanks,
YY


2009/10/28 Martijn Tonies m.ton...@upscene.com

 Michael,

 Does MySQL support multi-db transactions?

 With regards,

 Martijn Tonies
 Upscene Productions
 http://www.upscene.com

 Download Database Workbench for Oracle, MS SQL Server, Sybase SQL
 Anywhere, MySQL, InterBase, NexusDB and Firebird!

 Database questions? Check the forum:
 http://www.databasedevelopmentforum.com




 That is correct.  Many db interfaces off programmatic abstractions of
 these facilities, but you may certainly just issue the statments.

 START TRANSACTION

 INSERT that
 UPDATE that

 on success: COMMIT

 on error: ROLLBACK

 - michael dykman



 On Wed, Oct 28, 2009 at 12:07 AM, Mosaed AlZamil mosza...@gmail.com
 wrote:

 Hello Everyone,
 I am a newbie using innodb.
 How can I implement START TRANSACTION COMMIT ROLLBACK when I need to
 update
 two tables
 that are located in two different databases. Would a single START
 TRANSACTION be sufficient ?
 Any help would be appreciated.
 TIA
 Mos




 --
 - michael dykman
 - mdyk...@gmail.com

 May you live every day of your life.
   Jonathan Swift

 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:http://lists.mysql.com/mysql?unsub=m.ton...@upscene.com



 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:http://lists.mysql.com/mysql?unsub=yuan4...@gmail.com




Re: START TRANSACTION COMMIT ROLLBACK

2009-10-28 Thread Martijn Tonies
Ah, works for InnoDB I see.

Nice.


With regards,

Martijn Tonies
Upscene Productions
http://www.upscene.com

Download Database Workbench for Oracle, MS SQL Server, Sybase SQL
Anywhere, MySQL, InterBase, NexusDB and Firebird!

Database questions? Check the forum:
http://www.databasedevelopmentforum.com


  Looks to me we should use XA transaction syntax instead. Check this:


  http://dev.mysql.com/doc/refman/5.0/en/xa.html

  Thanks,
  YY



  2009/10/28 Martijn Tonies m.ton...@upscene.com

Michael,

Does MySQL support multi-db transactions?

With regards,

Martijn Tonies
Upscene Productions
http://www.upscene.com

Download Database Workbench for Oracle, MS SQL Server, Sybase SQL
Anywhere, MySQL, InterBase, NexusDB and Firebird!

Database questions? Check the forum:
http://www.databasedevelopmentforum.com




That is correct.  Many db interfaces off programmatic abstractions of
these facilities, but you may certainly just issue the statments.

START TRANSACTION

INSERT that
UPDATE that

on success: COMMIT

on error: ROLLBACK

- michael dykman



On Wed, Oct 28, 2009 at 12:07 AM, Mosaed AlZamil mosza...@gmail.com wrote:

  Hello Everyone,
  I am a newbie using innodb.
  How can I implement START TRANSACTION COMMIT ROLLBACK when I need to 
update
  two tables
  that are located in two different databases. Would a single START
  TRANSACTION be sufficient ?
  Any help would be appreciated.
  TIA
  Mos





-- 
- michael dykman
- mdyk...@gmail.com

May you live every day of your life.
  Jonathan Swift

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql

To unsubscribe:http://lists.mysql.com/mysql?unsub=m.ton...@upscene.com



-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql?unsub=yuan4...@gmail.com





Re: START TRANSACTION COMMIT ROLLBACK

2009-10-28 Thread Paul DuBois
If all the tables are InnoDB, XA isn't needed. It doesn't matter  
whether all tables are in the same database.


On Oct 28, 2009, at 5:48 AM, Martijn Tonies wrote:


Ah, works for InnoDB I see.

Nice.


With regards,

Martijn Tonies
Upscene Productions
http://www.upscene.com

Download Database Workbench for Oracle, MS SQL Server, Sybase SQL
Anywhere, MySQL, InterBase, NexusDB and Firebird!

Database questions? Check the forum:
http://www.databasedevelopmentforum.com


 Looks to me we should use XA transaction syntax instead. Check this:


 http://dev.mysql.com/doc/refman/5.0/en/xa.html

 Thanks,
 YY



 2009/10/28 Martijn Tonies m.ton...@upscene.com

   Michael,

   Does MySQL support multi-db transactions?

   With regards,

   Martijn Tonies
   Upscene Productions
   http://www.upscene.com

   Download Database Workbench for Oracle, MS SQL Server, Sybase SQL
   Anywhere, MySQL, InterBase, NexusDB and Firebird!

   Database questions? Check the forum:
   http://www.databasedevelopmentforum.com




   That is correct.  Many db interfaces off programmatic  
abstractions of

   these facilities, but you may certainly just issue the statments.

   START TRANSACTION

   INSERT that
   UPDATE that

   on success: COMMIT

   on error: ROLLBACK

   - michael dykman



   On Wed, Oct 28, 2009 at 12:07 AM, Mosaed AlZamil mosza...@gmail.com 
 wrote:


 Hello Everyone,
 I am a newbie using innodb.
 How can I implement START TRANSACTION COMMIT ROLLBACK when I  
need to update

 two tables
 that are located in two different databases. Would a single START
 TRANSACTION be sufficient ?
 Any help would be appreciated.
 TIA
 Mos





   --
   - michael dykman
   - mdyk...@gmail.com

   May you live every day of your life.
 Jonathan Swift


--
Paul DuBois
Sun Microsystems / MySQL Documentation Team
Madison, Wisconsin, USA
www.mysql.com


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org



Re: START TRANSACTION COMMIT ROLLBACK

2009-10-28 Thread Michael Dykman
There seems to be some confusion about 'multi-db'.Within a single
MySQL instance, assuming that all your tables are a transactional type
(InnoDB isn't the only one), you don't have to do anything special to
cross database boundaries.  XA is required if you plan to spread your
transactions out across multiple database instances.

 - michael

On Wed, Oct 28, 2009 at 10:08 AM, Paul DuBois paul.dub...@sun.com wrote:
 If all the tables are InnoDB, XA isn't needed. It doesn't matter whether all
 tables are in the same database.

 On Oct 28, 2009, at 5:48 AM, Martijn Tonies wrote:

 Ah, works for InnoDB I see.

 Nice.


 With regards,

 Martijn Tonies
 Upscene Productions
 http://www.upscene.com

 Download Database Workbench for Oracle, MS SQL Server, Sybase SQL
 Anywhere, MySQL, InterBase, NexusDB and Firebird!

 Database questions? Check the forum:
 http://www.databasedevelopmentforum.com


  Looks to me we should use XA transaction syntax instead. Check this:


  http://dev.mysql.com/doc/refman/5.0/en/xa.html

  Thanks,
  YY



  2009/10/28 Martijn Tonies m.ton...@upscene.com

   Michael,

   Does MySQL support multi-db transactions?

   With regards,

   Martijn Tonies
   Upscene Productions
   http://www.upscene.com

   Download Database Workbench for Oracle, MS SQL Server, Sybase SQL
   Anywhere, MySQL, InterBase, NexusDB and Firebird!

   Database questions? Check the forum:
   http://www.databasedevelopmentforum.com




   That is correct.  Many db interfaces off programmatic abstractions of
   these facilities, but you may certainly just issue the statments.

   START TRANSACTION

   INSERT that
   UPDATE that

   on success: COMMIT

   on error: ROLLBACK

   - michael dykman



   On Wed, Oct 28, 2009 at 12:07 AM, Mosaed AlZamil mosza...@gmail.com
 wrote:

     Hello Everyone,
     I am a newbie using innodb.
     How can I implement START TRANSACTION COMMIT ROLLBACK when I need to
 update
     two tables
     that are located in two different databases. Would a single START
     TRANSACTION be sufficient ?
     Any help would be appreciated.
     TIA
     Mos





   --
   - michael dykman
   - mdyk...@gmail.com

   May you live every day of your life.
     Jonathan Swift

 --
 Paul DuBois
 Sun Microsystems / MySQL Documentation Team
 Madison, Wisconsin, USA
 www.mysql.com


 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:    http://lists.mysql.com/mysql?unsub=mdyk...@gmail.com





-- 
 - michael dykman
 - mdyk...@gmail.com

May you live every day of your life.
Jonathan Swift

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org



Re: START TRANSACTION COMMIT ROLLBACK

2009-10-28 Thread Martijn Tonies

There seems to be some confusion about 'multi-db'.Within a single
MySQL instance, assuming that all your tables are a transactional type
(InnoDB isn't the only one), you don't have to do anything special to
cross database boundaries.  XA is required if you plan to spread your
transactions out across multiple database instances.


Right, makes sense, thanks for clearing that up.

With regards,

Martijn Tonies
Upscene Productions
http://www.upscene.com

Download Database Workbench for Oracle, MS SQL Server, Sybase SQL
Anywhere, MySQL, InterBase, NexusDB and Firebird!

Database questions? Check the forum:
http://www.databasedevelopmentforum.com


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org



START TRANSACTION COMMIT ROLLBACK

2009-10-27 Thread Mosaed AlZamil
Hello Everyone,
 I am a newbie using innodb.
How can I implement  START TRANSACTION COMMIT ROLLBACK when I need to update
two tables
that are located in two different databases. Would a single  START
TRANSACTION be sufficient ?
Any help would be appreciated.
TIA
Mos