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 :: get week day name sql server 
Sql :: oracle sql timestamp 
Sql :: mysql all columns 
Sql :: postgresql array last element 
Sql :: mysql select where not in multiple tables 
Sql :: mariadb.service: Main process exited, code=exited, status=1/FAILURE 
Sql :: ms sql truncate table vs delete 
Sql :: how to add foreign key constraint in sql 
Sql :: sql server date now 
Sql :: oracle sql create view 
Sql :: centos 8 install mysql 
Sql :: mysql how to subtract dates 
Sql :: get date from timestamp in mysql 
Sql :: alter table name 
Sql :: how to reset table in sql server 
Sql :: date in where on datetime column clause mysql 
Sql :: how to remove default in mysql 
Sql :: wordpress print query sql 
Sql :: change default role snowflake 
Sql :: oracle search in date columns 
Sql :: postgresql get last 10 records 
Sql :: contains word in sql 
Sql :: sqlite3 read only 
Sql :: disable trigger sql oracle 
Sql :: sql server update column based on another table 
Sql :: rename constraint postgresql 
Sql :: sql first character 
Sql :: execute stored procedure 
Sql :: postgresql dump and restore db 
Sql :: how to update random rows in sql 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =