| От | Amit Shah |
|---|---|
| Тема | Query for block updates |
| Дата | |
| Msg-id | 200612031719.44642.ashah@opuspro.com обсуждение исходный текст |
| Ответы |
Re: Query for block updates
|
| Список | pgsql-sql |
Hi, If this question doesn't belong to this mailing list, please pardon. I have a table with a few hundred million rows, and I need to write a query that does something like follows -- Change all the values of a column to null where the value cannot be casted to numeric(20,4) I have it as varchar, and I need to convert it to numeric(20,4). I am using this query - alter table optiondata ALTER volume TYPE numeric(20,4) using cast(volume as numeric(20,4)); then wait for DB to complain, and then update that value to null, and just keep doing this till all garbadge is removed :-( Thanks, Amit
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера