| От | Tim Barnard |
|---|---|
| Тема | Re: How to check if a table exists |
| Дата | |
| Msg-id | 008001c0a7eb$13357ec0$a519af3f@hartcomm.com обсуждение |
| Ответ на | How to check if a table exists ("Jeff" <jklcom@mindspring.com>) |
| Список | pgsql-general |
I do it this way using libpq: select count(*) from pg_class where relname='table name goes here' and test for a count > 1. Tim ----- Original Message ----- From: "Jeff" <jklcom@mindspring.com> To: <pgsql-general@postgresql.org> Sent: Wednesday, March 07, 2001 8:48 PM Subject: [GENERAL] How to check if a table exists > Also how to programmatically check if a table exists in the database? > > > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) >
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера