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.

How to find all the tables in MySQL with specific column names in them?

I have 2-3 different column names that I want to look up in the entire DB and list out all …

mysql information-schema
How to check if a Constraint exists in Sql server?

I have this sql: ALTER TABLE dbo.ChannelPlayerSkins DROP CONSTRAINT FK_ChannelPlayerSkins_Channels but apparently, on some other databases we …

sql-server information-schema system-tables
List all tables in postgresql information_schema

What is the best way to list all of the tables within PostgreSQL's information_schema? To clarify: I am working …

sql postgresql information-schema
How to check if a table exists in a given schema

Postgres 8.4 and greater databases contain common tables in public schema and company specific tables in company schema. company schema names …

sql database postgresql information-schema search-path
How do I find a default constraint using INFORMATION_SCHEMA?

I'm trying to test if a given default constraint exists. I don't want to use the sysobjects table, but the …

sql sql-server tsql information-schema
Error #1044 - Access denied for user 'root'@'localhost' to database 'information_schema'

Alright, so here is the scenario I performed a full backup on my mysql server today. Now when I try …

sql phpmyadmin information-schema
Finding columns that are NOT NULL in PostgreSQL

I had an assignment for each table to count nullable columns. Easy: SELECT table_name, count(*) FROM INFORMATION_SCHEMA.COLUMNS …

sql postgresql information-schema
How can I test if a column exists in a table using an SQL statement

Is there a simple alternative in PostgreSQL to this statement produced in Oracle? select table_name from user_tab_columns …

postgresql information-schema
SQLite Schema Information Metadata

I need to get column names and their tables in a SQLite database. What I need is a resultset with 2 …

sqlite information-schema
What is the most portable way to check whether a trigger exists in SQL Server?

I'm looking for the most portable method to check for existence of a trigger in MS SQL Server. It needs …

sql-server triggers information-schema