Site Menu
- Home
- Products
- NexusDB
- Nexus Quality Suite
- NexusDB Drivers & Connectors
- Nexus Remoting
- Nexus Memory Manager
- Some of our Customers
- Testimonials and use(r)s
- Downloads
- Documentation
- Support
- Pricing & Orders
- About
- Community
- My Nexus
- Recently Updated ...
- Search...
- Site Login
Search
EXECUTE IMMEDIATE statement
Mon, 03/09/2009 - 21:59 | hdanzl
The SQL source statement contained in the host variable is prepared and executed.
Syntax
EXECUTE IMMEDIATE <sql-string> <sql-string> ::= <character string literal> |
Usage
The EXECUTE IMMEDIATE statement is used to execute dynamic SQL.
Notes
♦ | <sql-string> can be any valid SQL expression in text form. |
♦ | <sql-string> is parsed at the time of execution |
♦ | the query is prepared, executed, unprepared and released in one atomic step |
1) The following example executes a simple dynamic query:
DECLARE TableName as varchar(100);
SET TableName = 'student';
EXECUTE IMMEDIATE 'select * from ' + TableName;
Conformance
SQL:2003 standard |
- |
Dynamic SQL |
Questions? Problems?
- Interested to buy but something put you off?
- Can't find what you're looking for?
- Have a suggestion?
Let us know. If you're having trouble contacting us, please check here.
Site Updates
- Dec 4 2024 - 1:53pm
- Dec 4 2024 - 1:48pm
- Nov 19 2024 - 1:04pm
- Oct 17 2024 - 10:27am
- Jul 24 2024 - 1:22pm