| От | Joe Conway |
|---|---|
| Тема | Re: SHOW |
| Дата | |
| Msg-id | 025d01c1350d$e682e6f0$0705a8c0@jecw2k1 обсуждение исходный текст |
| Ответ на | Re: SHOW (bpalmer <bpalmer@crimelabs.net>) |
| Список | pgsql-general |
> > > What is the equivalent to the mysql's: > > > SHOW COLUMNS FROM [TABLENAME]; > > > > in psql, \d will show you all tables and \d TABLE will show you the > > columns in the table. If you need it as a sql command, you can check the > > system tables. > > OK. That works for ./bin/psql, but NOT on the libpq's PQexec. > What do I have to type here? > > Thanx again and lots of greetings from cool Spain > Steve Start up psql with the -E on the command line. Then do \d TABLE. This will show you the actual SQL commands used by psql. See the psql man page for more details. HTH, -- Joe
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера