You are here: Re: [PHP] db insert question « PHP « IT news, forums, messages
Re: [PHP] db insert question

Posted by Duncan Hill on 07/21/05 17:08

On Thursday 21 July 2005 15:02, Jim Moseby typed:
> As far as I know, there is no way to insert 20 unique rows of data into a
> MySQL table without executing 20 queries.  Maybe someone else here does(?).
> Perhaps drop a note over on the MySQL list, since this is really more an
> SQL question than PHP. Sorry I couldn't help.

Yes, MySQL supports an extended insert syntax of insert into foo (...) values
(...), (...), (...).

Building that kind of query is left as an excercise for the user. I believe
the PEAR DB abstraction layer can accept an array to generate that kind of
query.

--
My mind not only wanders, it sometimes leaves completely.

 

Navigation:

[Reply to this 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

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