A znova Re: Multiuzivatelsky SQL server

Jan Kasprzak kas na informatics.muni.cz
Pondělí Říjen 18 14:04:14 CEST 1999


Miroslav Oravec wrote:
: 
: select pole from xxx;
: 
: ... editace..
: 
: lock tables xxx write ;
: update xxx set pole=nova_hodnota;
: unlock tables;
: 
: Je to dost rychle, aby to tych dalsich 49, co by chceli trebars len
: citat, nezdrzovalo ?
: 
	Kvuli update neni treba zamykat (aspon v MySQL manualu pisou,
ze update se provadi vzdy jako atomicka operace).

-Yenya

-- 
\ Jan "Yenya" Kasprzak <kas at fi.muni.cz>       http://www.fi.muni.cz/~kas/
\\ PGP: finger kas at aisa.fi.muni.cz   0D99A7FB206605D7 8B35FCDE05B18A5E //
\\\             Czech Linux Homepage:  http://www.linux.cz/              ///
///    While Linux is larger than Emacs, at least Linux has the excuse   \\\
//     that it needs to be.                           --Linus Torvalds    \\


Další informace o konferenci Databases