Re: INSERT OR UPDATE?

Поиск
Список
Период
Сортировка
От andrew
Тема Re: INSERT OR UPDATE?
Дата
Msg-id 1128840481.850949.55120@o13g2000cwo.googlegroups.com
обсуждение исходный текст
Ответ на INSERT OR UPDATE?  (smorrey@gmail.com)
Ответы Re: INSERT OR UPDATE?  (Hannes Dorbath <light@theendofthetunnel.de>)
Список pgsql-general
I think is almost the same that in many other languages, and like in
many other with the time you can have function's libraries, or more
likely class libraries with the usefull stuff.

In desktop programming environments you have components, here you have
classes that are the same thing using it in another way. :) Watch out
the new auto-includes from PHP5 classes.

There are scripts with differents approaches, you can select one or
build your own for multiple proyects.
Personally I preffer not to build the SQL code in PHP. I allways have
the queries in XML files with an specific format I chose, to describe a
SQL Query with parameters. A class to handle the query can "tell me"
about the parameters or simply "receive" the parameters, build and
execute the query,  and return the results or making it browseable
(recordset).

A very usual and smart approach is to use clases in PEAR::DB.


В списке pgsql-general по дате отправления:

Предыдущее
От: smorrey@gmail.com
Дата:
Сообщение: INSERT OR UPDATE?
Следующее
От: "shakahshakah@gmail.com"
Дата:
Сообщение: Re: INSERT OR UPDATE?