Posted By: Endif (za vsechno muze Y2K) on 'CZdatabases'
Title:     Re: Update
Date:      Fri Feb 25 06:47:08 2000

> Transakce je sice hezka vec, bohuzel neni vzdy spasitelna, chci se optat,
> jak se resi a zda-li je to takto dobre...

*** A co je tedy "vzdy spasitelne", smil-li se ptat? :)

> Presne ta vec, co psal Snake ma totiz par hacku se soubeznosti:
> 
> 1. Zacne transakci a zjisti, ze radek neexistuje
> 2. Zacne s transakci a zjisti, ze radek neexistuje, vytvori ho 
> 1. Pokracuje v transakci, taktez vytvori radek
> 2. Dokonci transakci, vse se provede OK
> 1. Chce dokoncit transakci, ale co muze delat? Pokud neni primary key nekde 
> checkovany, pak mam 2 radky tabulky a ted to chci zjistit - samozrejme
> select count (*) from...

*** Transakci je nekolik druhu - alespon pres JDBC:
TRANSACTION_NONE 
          Transactions are not supported.
TRANSACTION_READ_COMMITTED 
          Dirty reads are prevented; non-repeatable reads and phantom reads 
can occur.
TRANSACTION_READ_UNCOMMITTED 
          Dirty reads, non-repeatable reads and phantom reads can occur.
TRANSACTION_REPEATABLE_READ 
          Dirty reads and non-repeatable reads are prevented; phantom reads 
can occur.
TRANSACTION_SERIALIZABLE 
          Dirty reads, non-repeatable reads and phantom reads are prevented.

Pro KrupickuM: Pokud si dobre vzpomniam, MySQL neumi transakce vubec :(


Bye, Endy/Endif 
                         ... please wait - loading a virus into your computer.

Search the boards