Thread MySQL + Transaktion -> funktioniert nicht
(30 answers)
Opened by SirLant at 2003-08-25 16:00
Die Tables sehen so aus:
[sql]CREATE TABLE doku_bestell ( bestell_id bigint(20) NOT NULL auto_increment, bestell_datum date NOT NULL default '0000-00 -00', bestell_preis decimal(10,2) NOT NULL default '0.00', aut_id varchar(10) NOT NULL default '', kunden_name varchar(40) NOT NULL default '', kunden_email varchar(60) NOT NULL default '', PRIMARY KEY (bestell_id) ) TYPE =BerkeleyDB; CREATE TABLE doku_posten ( bestell_id bigint(20) unsigned NOT NULL default '0', doku_id bigint(20) unsigned NOT NULL default '0', preis decimal(10,2) NOT NULL default '0.00', passwort char(32) NOT NULL default '', UNIQUE KEY bestell_id (bestell_id,doku_id) ) TYPE =BerkeleyDB; [/sql] Wie funktioniert errstr und erno, bzw. wie muss ich das schreiben? --Programming today is a race between Software Enginers striving to build bigger and better idiot-proof Programs,
and the Universe trying to produce bigger and better idiots. So far, the Universe is winning! |