Search
 
SCRIPT & CODE EXAMPLE
 

SQL

list columns in table postgres

-- Good for quickly reminding you of what columns exist.
SELECT * FROM mytable WHERE 1=0;
Comment

postgresql list columns

SELECT * FROM information_schema.columns 
WHERE table_schema = 'your_schema'
  AND table_name = 'your_table';
Comment

PREVIOUS NEXT
Code Example
Sql :: SQL query to convert DD/MM/YYYY to YYYY-MM-DD 
Sql :: ksql terminate all queries 
Sql :: get first 3 letters in sql 
Sql :: how to drop a trigger in postgresql 
Sql :: add timestamp column to existing table t-sql 
Sql :: having vs where 
Sql :: postgres convert text to number 
Sql :: oracle alter table add column not null 
Sql :: mysql sysdate - 1 day 
Sql :: sql replace character in string in all records 
Sql :: oracle ora-00054 find 
Sql :: oracle list privileges 
Sql :: oracle asynchronous procedure 
Sql :: alter tablespace add datafile autoextend 
Sql :: mysql how to subtract dates 
Sql :: how to change column type psql 
Sql :: sql rename column 
Sql :: creer une base de donnée psql 
Sql :: mysql config user password 
Sql :: mysql alter table modify column 
Sql :: sql delete join 
Sql :: t sql get foreign key 
Sql :: sql create index 
Sql :: mysql select and count left join 
Sql :: current year sql 
Sql :: ora-01109 database not open in oracle 19c 
Sql :: postgresql create schema in specific database 
Sql :: sql convert xml to text 
Sql :: mysql extract month from date 
Sql :: SQL Server - Count number of times a specific character appears in a string 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =