Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
PREPARE and EXECUTE statements provide an ability to create a parameterized query and re-use it to execute with different parameters.
e.g.
PREPARE pcount from select count(*) from src where key > ?; EXECUTE pcount using 200; -- execute with different value EXECUTE pcount using 101; PREPARE pquery2 from select count(*) from daysales where dt=? and customer=?; EXECUTE pquery2 using '2001-01-01',1;