Reply to MySQL return values

Your name:

Reply:


Posted by Feudalac! on 10/24/05 13:20

I have to insert a value into a table and with the new ID i have to
update some other tables.

is there a way to do it like:
insert into table (fields) values(...) and return id of new record

update table set field=id of new record where id=number


for now i
insert into table
read last record from table (order by id desc limit 1)
and then undate other tables with the id given...

something to reduce the number of queryes...


thanks

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация