Top "Information-schema" questions

The information schema is a set of views providing metadata for objects in relational databases: tables, views, columns, stored procedures, accounts etc.

Query the schema details of a table in PostgreSQL?

I need to know the column type in PostgreSQL (i.e. varchar(20)). I know that I could probably find this …

postgresql types dynamic-sql information-schema
SQL - INFORMATION_SCHEMA for All Databases On Server

INFORMATION_SCHEMA.TABLES or INFORMATION_SCHEMA.COLUMNS work for only specified databases. Is it possible to query table metadata for …

sql sql-server information-schema
MySQL: How can I get the timestamp of the last insertion to the database

How can I check when was the last time (timestamp) that I wrote in the database, irrespectively of the database …

mysql database timestamp database-schema information-schema
List grants and privileges for a materialized view in PostgreSQL

I need to determine what privileges are currently granted for some materialized views in my database. The query to do …

postgresql privileges materialized-views information-schema
SQL Server 2008 grant permission to information_schema.columns

I have a series of stored procedures that select data from a db. I have a role (cctc_reader) that …

sql-server sql-server-2008 permissions information-schema
Select data from INFORMATION_SCHEMA query

Probably an easy question.. I've got a list of tables from INFORMATION_SCHEMA and I want to do queries (select, …

mysql select information-schema
Removing All Primary Keys

This is going to sound like a crazy request. The databases that I report from do not have any foreign …

tsql sql-server-2000 constraints information-schema
Can DESCRIBE syntax be embedded in SELECT statement?

In MySQL, the syntax DESCRIBE can show a table's structure, but it cannot be embedded to normal statement; is there …

mysql sql select information-schema describe