INSERT nebo UPDATE?

Returner returner na centrum.cz
Úterý Únor 5 14:48:30 CET 2002


> > existuje take REPLACE ... to v pripade existence nahradi, 

> Ale to je asi nejaky mistni folklor, ne? 

Z manualu MySQL 3.23.38:
REPLACE works exactly like INSERT, except that if an old 
record in the table has the same value as a new record on 
a unique index, the old record is deleted before the new 
record is inserted.

--
Returner




Další informace o konferenci Databases