What are the main differences between
For example with this dynamic SQL:
EXECUTE ('SELECT * FROM ' || sometable ||' ORDER BY somecol'); EXECUTE IMMEDITATE ('SELECT * FROM ' || sometable ||' ORDER BY somecol');
asked 15 Jan '14, 15:49
The basic difference between the two is that EXECUTE IMMEDIATE is WATCOM SQL and EXECUTE is TSQL. Both statements will parse a string and execute the statement(s) contained within. Each statement has different options - see the documentation for details - but other than that they are the same. Which one you use is likely more dependent on whether you are writing your procedural code using WATCOM SQL dialect or TSQL dialect.
answered 15 Jan '14, 15:55