| От | Luuk Jansen |
|---|---|
| Тема | Updating in multiple tables |
| Дата | |
| Msg-id | 1142864817.3554.20.camel@localhost.localdomain обсуждение исходный текст |
| Ответы |
Re: Updating in multiple tables
|
| Список | pgsql-general |
I have a quick newbee question: Is is possible to update in multiple tables at the same time. I am working with PHP scripts and will use the following example to explain what I want to do: I have a generic_user tables, which forms a INNER JOIN with the logon_user table (with a join using id). generic_user: - id - name - passowrd logon_user: - id - last_logon - nickname As I load all the fields at once in an array, and want to update the same, so just something like "UPDATE generic_user INNER JOIN logon_user USING (id) SET name='test', nickname='test2' WHERE id = 1"; Is there anybody who can explain how to do this? Thanks in advance, Regards, Luuk
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера