Back Forward Connect SQL form
Data mapping

About Connect SQL rules

You can enter standard SQL into the Connect SQL form. In addition, employ the syntax described here to cause PRPC to make runtime substitutions to the SQL before sending it to the external database.

These keywords and notations provide a two-way mapping between PRPC features (the clipboard, Database Name instances, and Database Table instances) and the tables, rows, and columns of the external database.

NoteIn the Oracle implementation of Structured Query Language, column names use only uppercase letters unless you use the AS clause. To match a column name that contains lowercase letters, use AS:

Select MarketPrice as ".MarketPriceprop"

where MarketPrice is the Oracle column name and MarketPriceprop is the property name.

Advanced featureFor advanced suggestions on avoiding resource-intensive operations with Connect SQL rules, see PDNWriting SQL, a document available on the PDN.

  Referencing properties

  Identifying a database table or PRPC class

  Using SELECT statements

  SQL Comments

  Resultsets from Oracle stored procedures

  Multiple resultsets from SQL Server or Sybase stored procedures

  The Asis keyword

  Capturing SQL statements and status responses

  Calling stored procedures

  Mapping of Dates, Times, and DateTime properties

  Output of integers and DateTime values

 Up Dynamic SQL

Up About Connect SQL rules