Macabre, this site under construction ?
Macabre, this site under construction ?
kantry, спасибо, значит правильно сделал
Hat-Trick,
INSERT INTO table (a,b,c) VALUES (1,2,3)
ON DUPLICATE KEY UPDATE c = c+1;
-- если в таблице есть a=1 то обновится колонка c=c+1
Armanbinrahman, nice
making a site in wapka like johncms :
`team_id`, `offer_type`, `transfer_id` PRIMARY KEY
где-то видел, что можно вставить запись, но если такая уже есть, то обновить её
INSERT INTO `fm_transfers_offers` (`team_id`, `offer_type`, `transfer_id`, `offer_sum`, `offer_date`) VALUES (".$team_id.", '".$offer_type."', ".$transfer_id.", ".$offer_sum.", ".$offer_date.")
Как добавить в запрос обновление `offer_sum`, `offer_date`?