Re: Update Query Problem
От | Andreas Kretschmer |
---|---|
Тема | Re: Update Query Problem |
Дата | |
Msg-id | 20051213174354.GA3143@kaufbach.delug.de обсуждение исходный текст |
Ответ на | Update Query Problem (<operationsengineer1@yahoo.com>) |
Ответы |
Re: Update Query Problem
|
Список | pgsql-novice |
operationsengineer1@yahoo.com <operationsengineer1@yahoo.com> schrieb: > the following update query... > > UPDATE t_job_number > SET contract_id = 30 > WHERE t_serial_number.serial_number_id = 78 > AND t_serial_number.job_number_id = > t_job_number.job_number_id Try this: UPDATE t_job_number SET contract_id = 30 WHERE job_number_id = (select job_number_id from t_serial_number where serial_number_id = 78); I'm not sure if i understand you corrently... HTH, Andreas -- Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect. (Linus Torvalds) Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°
В списке pgsql-novice по дате отправления: