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.

Data Set Options <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong> 4 DBCREATE_TABLE_OPTS= Data Set Option 299SyntaxDBCONDITION="DBMS-SQL-query-clause"Syntax DescriptionDBMS-SQL-query-clauseis a DBMS-specific SQL query clause, such as WHERE, GROUP BY, HAVING, orORDER BY.DetailsYou can use this option to specify selection criteria in the <strong>for</strong>m of DBMS-specific SQLquery clauses, which the <strong>SAS</strong>/<strong>ACCESS</strong> engine passes directly to the DBMS <strong>for</strong>processing. When selection criteria are passed directly to the DBMS <strong>for</strong> processing,per<strong>for</strong>mance is often enhanced. The DBMS checks the criteria <strong>for</strong> syntax errors when itreceives the SQL query.The DBKEY= and DBINDEX= options are ignored when you use DBCONDITION=.ExampleIn this example, the function that is passed to the DBMS with the DBCONDITION=option causes the DBMS to return to <strong>SAS</strong> only the rows that satisfy the condition.proc sql;create view smithnames asselect lastname from myoralib.employees(dbcondition="where soundex(lastname) = soundex(’SMYTHE’)" )using libname myoralib oracle user=testuser pw=testpass path=dbmssrv;select lastname from smithnames;See Also“DBINDEX= Data Set Option” on page 303“DBKEY= Data Set Option” on page 305DBCREATE_TABLE_OPTS= Data Set OptionSpecifies DBMS-specific syntax to add to the CREATE TABLE statement.Default value: the current LIBNAME settingValid in: DATA and PROC steps (when accessing DBMS data using <strong>SAS</strong>/<strong>ACCESS</strong>software)DBMS support: Aster nCluster, DB2 under UNIX and PC Hosts, DB2 under z/OS,Greenplum, HP Neoview, In<strong>for</strong>mix, Microsoft SQL Server, MySQL, Netezza, ODBC,OLE DB, Oracle, Sybase, Sybase IQ, Teradata

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

Saved successfully!

Ooh no, something went wrong!