| От | Ying Lu |
|---|---|
| Тема | Re: "\d tablename" to get column name, and column type |
| Дата | |
| Msg-id | 41373F34.3000908@cs.concordia.ca обсуждение исходный текст |
| Ответ на | Re: "\d tablename" to get column name, and column type by (Doug McNaught <doug@mcnaught.org>) |
| Список | pgsql-general |
Thanks a lot. Now I got it. Doug McNaught wrote: >Ying Lu <ying_lu@cs.concordia.ca> writes: > > > >>Hello, >> >>Under mysql, we have "desc tablename" to get the detail information >>about a table. My question is about to get column name, and column >>type for a specific table under PostgreSQL through JDBC. >> >>Assume we have a table named "test". Under PSQL, we can input "\d >>test" to see the details about table "test" successufully. However, >>my main purpose is trying to get column name, column name of a table >>through JDBC. >> >> > >The backslash commands are specific to 'psql'. From Java you'll need >to query the INFORMATION_SCHEMA or the system catalogs. > >-Doug > >
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера