| От | Hélder M. Vieira |
|---|---|
| Тема | Re: Removing duplicate rows |
| Дата | |
| Msg-id | 000c01c74a41$1ce8ffb0$6200a8c0@hmv02 обсуждение |
| Ответ на | Removing duplicate rows (Paul Lambert <paul.lambert@autoledgers.com.au>) |
| Список | pgsql-sql |
> As the table definitions get updated frequently, I'd like to put in my > script to create the table as a copy of the existing 'real' table. I'm > assuming "create table as" would be what I need to use, but what would I > use as the select sql - i.e. how do I use select to pull the definition of > a table. The create statement allows you to copy a table structure, including or excluding constraints. For inclusion and exclusion effects, please read the manual info related with the 'like' clause of the 'create table' statement. Ex.: create temporary table mytesttable (like mymaintable excluding constraints excluding defaults); Regards, Hélder M. Vieira
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера