| От | Cary B. O'Brien |
|---|---|
| Тема | Re: [INTERFACES] add/delete field utility? |
| Дата | |
| Msg-id | 199809031744.NAA07093@access1.digex.net обсуждение исходный текст |
| Ответ на | add/delete field utility? ("Frank Morton" <fmorton@mail.base2inc.com>) |
| Список | pgsql-interfaces |
> Is there a utility anywhere that can take an existing > database and add or delete fields/tables? I often > need to update databases on multiple machines > that need the same structure but have different data, > so dumping the data base, updating in a text editor > and reloading gets too tedious and the sizes of > all these are going to get too large eventually. > I'm not sure I understand the question, but can't you do this with psql? You can add and delete tables, and add fields easily (alter table ...). Dropping a field (column, attribute, whatever) can be done by creating a temporary table via a select with the columns you want, dropping the old table, and renaming the temp table to what you want. Am I misunderstanding the question? -- cary
В списке pgsql-interfaces по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера