Search
 
SCRIPT & CODE EXAMPLE
 

SQL

describe table postgres

postgres=# d schema.tablename;
Comment

postgre describe table


        
            
        
     SELECT 
   table_name, 
   column_name, 
   data_type 
FROM 
   information_schema.columns
WHERE 
   table_name = 'city';
Comment

1) PostgreSQL DESCRIBE TABLE using psql

d table_name or d+ table_name
or

SELECT 
   table_name, 
   column_name, 
   data_type 
FROM 
   information_schema.columns
WHERE 
   table_name = 'city';
Comment

postgres describe table

	# describe table in postgres

d+ <postgres_table>
Comment

PREVIOUS NEXT
Code Example
Sql :: mysql table schema 
Sql :: ORA-01090: shutdown in progress - connection is not permitted 
Sql :: how to tun mysql on ubunto 
Sql :: coalesce sql 
Sql :: SQL LIMIT With OFFSET Clause 
Sql :: postgressum when 
Sql :: for select oracle 
Sql :: warning: mysqli::__construct(): (hy000/2002): 
Sql :: power query add row 
Sql :: pl sql create table from another table 
Sql :: declare or use variable in snowflake 
Sql :: mysql for windows 10 64 bit 
Sql :: const pool = mysql.createpool() 
Sql :: SQL print multiple variable 
Sql :: len sql 
Sql :: how to casting data types in postgresql 
Sql :: mysql dump for selected row 
Sql :: How to search for a String in all Columns in all tables in SQL Server Database 
Sql :: change from not null postgresql 
Sql :: mysql show slave status 
Sql :: how to get the maximum length of a name in sql 
Sql :: relation does not exist postgresql 
Sql :: foreign key on table oracle 
Sql :: mariadb create index if not exists 
Sql :: get current date sql 
Sql :: oracle drop type 
Sql :: sql limit to 5 results 
Sql :: isnull in sqlite 
Sql :: SQL INNER JOIN With Three Tables 
Sql :: change sql global mode 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =