Re: Create table if not exists ... how ??

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: Create table if not exists ... how ??
Дата
Msg-id 4C44BBCA.2060109@joeconway.com
обсуждение исходный текст
Ответ на Re: Create table if not exists ... how ??  ("Igor Neyman" <ineyman@perceptron.com>)
Ответы Re: Create table if not exists ... how ??  (Jennifer Trey <jennifer.trey@gmail.com>)
Re: Create table if not exists ... how ??  (Jennifer Trey <jennifer.trey@gmail.com>)
Список pgsql-general
On 07/19/2010 01:54 PM, Igor Neyman wrote:
> What you suggest is completely different from what OP asked.
>
> Jen wants to avoid getting error on CREATE TABLE in case her table
> already exists (but proceed with CREATE TABLE, if it doesn't).
> What you suggest, will drop the table (IF EXISTS), and then create it
> "anew" - what if there is already data in the table?

Read on -- we are way past that already...

Joe

--
Joe Conway
credativ LLC: http://www.credativ.us
Linux, PostgreSQL, and general Open Source
Training, Service, Consulting, & 24x7 Support


Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: "Igor Neyman"
Дата:
Сообщение: Re: Create table if not exists ... how ??
Следующее
От: vinicius_bra
Дата:
Сообщение: Insert and Retrieve unsigned char sequences using C