13.07.2015 Views

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

560 Special Catalog Queries 4 Chapter 18Special Catalog Queries<strong>SAS</strong>/<strong>ACCESS</strong> Interface to HP Neoview supports the following special queries. Youcan use the queries to call the ODBC-style catalog function application programminginterfaces (APIs). Here is the general <strong>for</strong>mat of the special queries:Neoview::SQLAPI “parameter 1”,”parameter n”Neoview::is required to distinguish special queries from regular queries.SQLAPIis the specific API that is being called. Neither Neoview:: nor SQLAPI are casesensitive."parameter n"is a quoted string that is delimited by commas.Within the quoted string, two characters are universally recognized: the percent sign(%) and the underscore (_). The percent sign matches any sequence of zero or morecharacters, and the underscore represents any single character. To use either characteras a literal value, you can use the backslash character (\) to escape the matchcharacters. For example, this call to SQLTables usually matches table names such asmyatest and my_test:select * from connection to neoview (NEOVIEW::SQLTables ","my_test");Use the escape character to search only <strong>for</strong> the my_test table:select * from connection to neoview (NEOVIEW::SQLTables ","my\_test");<strong>SAS</strong>/<strong>ACCESS</strong> Interface to HP Neoview supports these special queries:Neoview::SQLTables returns a list of all tables that match the specified arguments. If you do notspecify any arguments, all accessible table names and in<strong>for</strong>mation are returned.Neoview::SQLColumns returns a list of all columns that match the specified arguments. If you do notspecify any argument, all accessible column names and in<strong>for</strong>mation are returned.Neoview::SQLPrimaryKeys returns a list of all columns that compose the primary key that matches thespecified table. A primary key can be composed of one or more columns. If you donot specify any table name, this special query fails.Neoview::SQLSpecialColumns returns a list of the optimal set of columns that uniquely identify a row in thespecified table.Neoview::SQLStatistics returns a list of the statistics <strong>for</strong> the specified table name, with options ofSQL_INDEX_ALL and SQL_ENSURE set in the SQLStatistics API call. If you donot specify any table name argument, this special query fails.Neoview::SQLGetTypeIn<strong>for</strong>eturns in<strong>for</strong>mation about the data types that the HP Neoview server supports.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!