Re: Selecting newly added column returns empty but only when selecting with other columns in table
В списке pgsql-general по дате отправления:
| От | John R Pierce |
|---|---|
| Тема | Re: Selecting newly added column returns empty but only when selecting with other columns in table |
| Дата | |
| Msg-id | 5657C843.1090909@hogranch.com обсуждение исходный текст |
| Ответ на | Selecting newly added column returns empty but only when selecting with other columns in table (mrtruji <mrtruji@gmail.com>) |
| Ответы |
Re: Selecting newly added column returns empty but only
when selecting with other columns in table
|
| Список | pgsql-general |
On 11/26/2015 4:13 PM, mrtruji wrote: > > Just added a new bytea type column to an existing psql table and > populated the column entirely with row data. Running into some strange > query results: > > When I select the newly added column by itself I get all the data as > expected:..... > can you show the SQL commands you used to add this column and populate it? if you used INSERT to populate the new column, that would have inserted NEW rows, not modified existing rows. to modify the existing rows, you need to use UPDATE with a WHERE clause that selects the correct row to UPDATE with the data for your new field... -- john r pierce, recycling bits in santa cruz
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера