In SQL server, if I write a command like this -
EXEC SP_HELP EmployeeMaster
it will return the fields of my table and all the default restrictions set by default. Now I just want to know that in postgres, like above, is there some kind of command?
Although I know that I only get table fields in postgres, you can use the query below.
select column_name from information_schema.columns where table_name = 'EmployeeMaster'
No, there is nothing like the server side. Most of the PostgreSQL descriptive and utility commands are implemented in the client psql, that is, they are not available for other client applications.
psql
information_schema, , .
information_schema
PgAdmin-III, , psql - , .
, Describe Table Postgres, ,
Describe Table
You can use pg_constraint, pg_class, pg_attribute to get the result. See here for more details.
Source: https://habr.com/ru/post/1523472/More articles:Sending eventon JSDOM click with JavaScript - javascriptCocoapods Private Repo does not pull the correct code for the tag - gitHaskell Implementation Issues - haskellhow to create a mvc 4 modular application - asp.net-mvcHow to check Windows device on root / jailbrake or not programmatically? - windows-phone-7Android - MediaController теряет активность - androidНасколько безопасно имя пользователя и пароль в строке подключения? - c#How to order case insensitive ASC or DESC, with DISTINCT and UNION - oracleHow to count entries for every day in a date range - ruby | fooobar.comHow to make exact decimal calculations? - dartAll Articles