How do I quit in the middle of a SQL script?

Поиск
Список
Период
Сортировка
От Wei Weng
Тема How do I quit in the middle of a SQL script?
Дата
Msg-id 428E1CE2.2050605@kencast.com
обсуждение исходный текст
Ответы Re: How do I quit in the middle of a SQL script?
Список pgsql-sql
Say if I want to add a small snip of code in front of the sql script 
generated by the pg_dump, to check for something then if the condition 
doesn't match, the script terminates right away. (Without actually doing the 
restoring stuff that the following large chunk is supposed to do)

Can I do that? And is it a good idea to add arbitrary code to the database 
dump sql script?

Thanks!


Wei


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

Предыдущее
От: Rafa Couto
Дата:
Сообщение: Transaction in plpgslq
Следующее
От: Andrew Hammond
Дата:
Сообщение: Re: Transaction in plpgslq