Top "Dynamic-sql" questions

Dynamic SQL is a technique using SQL (Structured Query Language) whose main difference from traditional SQL is that Dynamic SQL allows to build SQL statements dynamically at runtime, which eases the automatic generation and execution of program statements.

How can I update multiple columns with a Replace in SQL server?

How do I update different columns and rows across a table? I want to do something similiar to replace a …

sql sql-server sql-update dynamic-sql
Return SETOF rows from PostgreSQL function

I have a situation where I want to return the join between two views. and that's a lot of columns. …

postgresql plpgsql dynamic-sql postgresql-9.2
Create A View With Dynamic Sql

I'm trying to create a dynamic database creation script. There are a lot of steps and we create this database …

sql-server tsql dynamic-sql
PostgreSQL - dynamic value as table name

Possible Duplicate: Postgres Dynamic Query Function I wish to use the returned string from the query below as a table …

sql postgresql postgresql-9.1 dynamic-sql
Dynamically Changing what table to select from with SQL CASE statement

I'm trying to write a stored procedure and depending on a certain column value, I want to be able to …

sql sql-server dynamic-sql
Oracle EXECUTE IMMEDIATE with variable number of binds possible?

I need to use dynamic SQL execution on Oracle where I do not know the exact number of bind variables …

oracle plsql dynamic-sql
How to search all text fields in a DB for some substring with T-SQL

I have a huge schema, with several hundreds of tables and several thousands of columns. I'd know that a specific …

sql sql-server tsql dynamic-sql
EXECUTE...INTO...USING statement in PL/pgSQL can't execute into a record?

I'm attempting to write an area of a function in PL/pgSQL that loops through an hstore and sets a …

postgresql record plpgsql dynamic-sql composite
How to Partition a Table by Month ("Both" YEAR & MONTH) and create monthly partitions automatically?

I'm trying to Partition a Table by both Year and Month. The Column through which I'll partition is a datetime …

sql sql-server partitioning dynamic-sql sql-agent-job
Generate Delete Statement From Foreign Key Relationships in SQL 2008?

Is it possible via script/tool to generate a delete statement based on the tables fk relations. i.e. I …

sql code-generation foreign-keys dynamic-sql