How to check which database exists and use it in the function?
50756
How to use a variable for the database name in T-SQL?
117531
Best practice between using LEFT JOIN or NOT EXISTS
151510
Is it possible to mysqldump a subset of a database required to reproduce a query?
103532
How do I update if exists, insert if not (AKA "upsert" or "merge") in MySQL?
139662
How to identify unused databases on my sql server
98645
How to unit test an object with database queries
145792
Search for a string in all tables, rows and columns of a DB
129385
How to check if a column exists in a SQL Server table?
71115
How can I compare the schema of two databases?
9385
How do you do multiple SQL statements in one mysql_query?
112077
How to check if a value already exists to avoid duplicates?
101438
Using SQL functions in conditionals in Drupal 7 db_select()
43862
Check if table exists and if it doesn't exist, create it in SQL Server 2008
132438
How to select from MySQL where Table name is Variable
27642
Insert if not exists, else return id in postgresql
59351
How do I list all databases and tables using psql?
4521
Is there an "exists" function for jQuery?