The EXECUTE statement substitutes parameter values for the parameters in the prepared statement. For more information about EXECUTE, see the Neoview SQL Reference Manual.

Syntax

SET PARAM param-name param-value

param-nameis the name of the parameter for which a value is specified. Parameter names are case-sensitive. For example, the parameter ?pn is not equivalent to the parameter ?PN. param-namecan be preceded by a question mark (?), such as ?param-name.

param-valueis a numeric or character literal that specifies the value for the parameter. If you do not specify a value, Neoview Script returns an error.

If param-value is a character literal and the target column type is a character string, you do not have to enclose the value in single quotation marks. Its data type is determined from the data type of the column to which the literal is assigned. Character strings specified as parameter values are always case-sensitive even if they are not enclosed in quotation marks.

Considerations

In the Neoview Script interface, you must enter the command on one line. The command does not require an SQL terminator.

You can execute this command only in SQL mode.

Use separate SET PARAM commands to name and assign values to each unique parameter in a prepared SQL statement before running the EXECUTE statement.

Parameter names are case-sensitive. If you specify a parameter name in lowercase in the SET PARAM command, you must specify it in lowercase in other statements, such as DML statements or EXECUTE.

The name of a named parameter (?param-name) in a DML statement must be identical to the parameter name (param-name) that you specify in a SET PARAM command.

Examples

This command sets a value for the ?sal (salary) parameter:

SQL>set param ?sal 40000.00

This command sets a character string value, GREEN, for the ?lastname parameter:

SQL>set param ?lastname GREEN

These commands set values for named parameters in a subsequent SELECT statement:

SQL>set param ?sal 80000.00 SQL>set param ?job 100

SQL>select * from persnl.employee where salary = ?sal

and jobcode = ?job;

EMPNUM

FIRST_NAME

LAST_NAME

DEPTNUM

JOBCODE

SALARY

------

---------------

--------------------

-------

-------

----------

72

GLENN

THOMAS

3300

100

80000.00

---1 row(s) selected.

SQL>

108 Neoview Script Interface Commands

Page 108
Image 108
HP NEOVIEW 544530-001 manual This command sets a value for the ?sal salary parameter

NEOVIEW 544530-001 specifications

The HP Neoview 544530-001 is a sophisticated data warehousing solution that was designed to address the complex demands of modern businesses. Known for its robust architecture, it enables organizations to efficiently manage, store, and process vast amounts of data. This appliance offers a cohesive combination of hardware and software, configured to deliver high performance and reliability for business intelligence applications.

One of the standout features of the HP Neoview 544530-001 is its ability to support large-scale data analytics. The system utilizes a massively parallel processing architecture, which allows it to handle multiple data queries simultaneously, thereby enhancing the overall performance and response time. This characteristic is vital for businesses that rely on real-time data analysis to make informed decisions.

Another significant technology embedded in the Neoview 544530-001 is its advanced data storage capabilities. With generous storage capacity, it can accommodate extensive datasets, ensuring that organizations have the flexibility to grow their data without compromising system performance. The appliance also integrates advanced compression techniques, which optimize storage efficiency, reducing the physical space required and associated costs.

The HP Neoview is engineered with various data management features, including data quality tools that help ensure the integrity and accuracy of information. These tools can cleanse and normalize data, making it more reliable for analysis. Moreover, the system supports a wide array of data formats, facilitating easy integration with existing databases and applications.

Security is also a critical consideration for the HP Neoview 544530-001. The appliance incorporates robust security measures to protect sensitive data from unauthorized access. This includes encrypted connections and user authentication protocols, which are essential for compliance with industry standards.

In terms of scalability, the Neoview 544530-001 allows businesses to expand their data environment as their needs evolve. The system's modular architecture means that organizations can easily add hardware components, ensuring they can keep pace with increasing data volumes.

Overall, the HP Neoview 544530-001 provides organizations with a complete solution for data warehousing that combines powerful performance, extensive storage, advanced data management tools, and scalable architecture, making it an ideal choice for enterprises looking to leverage data for strategic advantage.