HP Neoview SQL Reference Manual page 103

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

--- 1 row(s) selected.
SQL>execute findemp using 20000.00, 300;
EMPNUM FIRST_NAME
------ --------------- -------------- ------- ------- --------
75 TIM
89 PETER
...
--- 13 row(s) selected.
Use SET PARAM to assign a value to a parameter name and specify both the parameter
name and a literal value in the EXECUTE USING clause:
SQL>prepare findemp from
+>select * from persnl.employee
+>where salary > ? and jobcode = ?;
--- SQL command prepared.
SQL>set param ?Salary 40000.00
SQL>execute findemp using ?Salary, 450;
EMPNUM FIRST_NAME
------ --------------- -------------- ------- ------- --------
232
THOMAS
LAST_NAME
DEPTNUM JOBCODE SALARY
WALKER
SMITH
LAST_NAME
DEPTNUM JOBCODE SALARY
SPINNER
3000
300 32000.00
3300
300 37000.40
4000
450 45000.00
EXECUTE Statement
103

Advertisement

Table of Contents
loading

Table of Contents