mam maly problem techniczno-logiczny...
mam dwie piekne tabelki
CREATE TABLE `<span style="font-weight: bold;">list` ( `userid` int(11) NOT NULL DEFAULT '0', `listid` int(11) NOT NULL DEFAULT '0', `entered` datetime DEFAULT NULL, `modified` timestamp(14) NOT NULL, PRIMARY KEY (`userid`,`listid`) ) TYPE=MyISAM; CREATE TABLE `<span style="font-weight: bold;">user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `email` varchar(255) NOT NULL DEFAULT '', `confirmed` tinyint(4) DEFAULT '0', `bouncecount` int(11) DEFAULT '0', `entered` datetime DEFAULT NULL, `disabled` tinyint(4) DEFAULT '0', `extradata` text, `foreignkey` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `email` (`email`), KEY `idx_phplist_user_user_uniqid` (`uniqid`) ) TYPE=MyISAM;
chcialbym stworzyc nowe wiersze (poprzez INSERT) w tabeli list
kopiujac pole 'id' z tabeli user i wklejajac je do userid w tabeli list.
pobierane wiersze z tabeli user musi spelniac warunek confirmed = 0;
jak to zrobic korzystajac tylko z jednego zapytania MySQL?
bardzo prosze o pomoc, mam nadzieje, ze dobrze wytlumaczylem problem...
z gory dziekuje,
pozdrawiam
a.