
OpenEdge® Data Management: SQL Reference © 2008 Progress Software Corporation. All rights reserved. These materials and all Progress® software products are copyrighted and all rights are reserved by Progress Software Corporation. The information in these materials is subject to change without notice, and Progress Software Corporation assumes no responsibility for any errors that may appear therein. The references in these materials to specific platforms supported are subject to change. A (and design), Actional, Actional (and design), Allegrix, Allegrix (and design), Apama, Apama (and Design), Business Empowerment, DataDirect (and design), DataDirect Connect, DataDirect Connect64, DataDirect Technologies, DataDirect XQuery, DataXtend, Dynamic Routing Architecture, EasyAsk, EdgeXtend, Empowerment Center, Fathom, IntelliStream, Neon, Neon New Era of Networks, O (and design), ObjectStore, OpenEdge, PeerDirect, Persistence, POSSENET, Powered by Progress, PowerTier, Progress, Progress DataXtend, Progress Dynamics, Progress Business Empowerment, Progress Empowerment Center, Progress Empowerment Program, Progress OpenEdge, Progress Profiles, Progress Results, Progress Software Developers Network, Progress Sonic, ProVision, PS Select, SequeLink, Shadow, ShadowDirect, Shadow Interface, Shadow Web Interface, SOAPStation, Sonic, Sonic ESB, SonicMQ, Sonic Orchestration Server, Sonic Software (and design), SonicSynergy, SpeedScript, Stylus Studio, Technical Empowerment, WebSpeed, and Your Software, Our Technology–Experience the Connection are registered trademarks of Progress Software Corporation or one of its subsidiaries or affiliates in the U.S. and/or other countries. AccelEvent, Apama Dashboard Studio, Apama Event Manager, Apama Event Modeler, Apama Event Store, AppsAlive, AppServer, ASPen, ASP-in-a-Box, BusinessEdge, Cache-Forward, DataDirect Spy, DataDirect SupportLink, DataDirect XML Converters, Future Proof, Ghost Agents, GVAC, Looking Glass, ObjectCache, ObjectStore Inspector, ObjectStore Performance Expert, Pantero, POSSE, ProDataSet, Progress ESP Event Manager, Progress ESP Event Modeler, Progress Event Engine, Progress RFID, PSE Pro, SectorAlliance, SmartBrowser, SmartComponent, SmartDataBrowser, SmartDataObjects, SmartDataView, SmartDialog, SmartFolder, SmartFrame, SmartObjects, SmartPanel, SmartQuery, SmartViewer, SmartWindow, Sonic Business Integration Suite, Sonic Process Manager, Sonic Collaboration Server, Sonic Continuous Availability Architecture, Sonic Database Service, Sonic Workbench, Sonic XML Server, The Brains Behind BAM, WebClient, Who Makes Progress, and Your World. Your SOA. are trademarks or service marks of Progress Software Corporation or one of its subsidiaries or affiliates in the U.S. and other countries. Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. Any other trademarks or trade names contained herein are the property of their respective owners. Third party acknowledgements — See the “Third party acknowledgements” section on page Preface–7 November 2008 Last updated with new content: Release 10.2A Product Code: 4496; R10.2A For the latest documentation updates see the OpenEdge Product Documentation category on PSDN (http://www.psdn.com/ library/kbcategory.jspa?categoryID=129). Contents OpenEdge SQL Statements . 1 OpenEdge SQL Functions . 69 OpenEdge SQL Reserved Words . 135 OpenEdge SQL Error Messages . 139 OpenEdge SQL System Limits . 157 OpenEdge SQL System Catalog Tables . 159 Data Type Compatibility. 183 OpenEdge SQL Language Elements . 185 OpenEdge SQL Elements and Statements in Backus Naur Form . 211 Compliance with Industry Standards . 227 Syntax for ABL Attributes . 233 Java Class Reference. 239 JDBC Conformance Notes. 265 OpenEdge SQL and ODBC Data Types . 283 Contents SQLGetInfo. .285 ODBC Scalar Functions . .305 Embedded SQL . .315 Index . Index–1 Contents–2 Contents Tables Table 1: OpenEdge SQL reserved words . 135 Table 2: OpenEdge SQL error codes and messages . 140 Table 3: OpenEdge SQL system limits . 157 Table 4: System tables and descriptions . 160 Table 5: SYSTABLES core system table . 161 Table 6: SYSCOLUMNS core system table . 162 Table 7: SYSINDEXES core system table . 163 Table 8: SYSCALCTABLE system table . 164 Table 9: SYSNCHARSTAT system table . 164 Table 10: SYSCOLAUTH system table . 164 Table 11: SYSCOLSTAT system table . 165 Table 12: SYSCOLUMNS_FULL system table . 165 Table 13: SYSDATATYPES system table . 167 Table 14: SYSDATESTAT system table . 167 Table 15: SYSDBAUTH system table . 168 Table 16: SYSFLOATSTAT system table . 168 Table 17: SYSIDXSTAT system table . 168 Table 18: SYSINTSTAT system table . 169 Table 19: SYSNUMSTAT system table . 169 Table 20: SYSPROCBIN system table . 170 Table 21: SYSPROCCOLUMNS system table . 170 Table 22: SYSPROCEDURES system table . 171 Table 23: SYSPROCTEXT system table . 171 Table 24: SYSREALSTAT system table . 172 Table 25: SYSSEQAUTH system table . 172 Table 26: SYSSEQUENCES system table . 173 Table 27: SYSSYNONYMS system table . 173 Table 28: SYSTABAUTH system table . 174 Table 29: SYSTABLES_FULL system table . 174 Table 30: SYSTBLSTAT system table . 175 Table 31: SYSTIMESTAT system table . 176 Table 32: SYSTINYINTSTAT system table . 176 Table 33: SYSTRIGCOLS system table . 177 Table 34: SYSTRIGGER system table . 177 Table 35: SYSTSSTAT system table . 178 Table 36: SYSTSTZSTAT system table . 178 Table 37: SYSNVARCHARSTAT system table . 179 Table 38: SYSVIEWS system table . 179 Table 39: SYS_CHKCOL_USAGE system table . 179 Table 40: SYS_CHK_CONSTRS system table . 180 Table 41: SYS_KEYCOL_USAGE system table . 180 Table 42: SYS_REF_CONSTRS system table . 181 Table 43: SYS_TBL_CONSTRS system table . 181 Table 44: ABL and corresponding OpenEdge SQL data types . 183 Table 45: OpenEdge SQL Number Formats . 187 Table 46: Date formats and descriptions . 188 Table 47: Time formats and descriptions . 190 Table 48: Specification formats for binary values . 195 Table 49: Relational operators and resulting predicates . 204 Table 50: Compatibility of SQL-92 scalar functions . 227 Table 51: Compliance of SQL-92 DDL and DML statements . 231 Table 52: ABL table attributes used in OpenEdge SQL statements . 233 Table 53: ABL column attributes used in OpenEdge SQL statements . 235 Table 54: ABL index attributes used in OpenEdge SQL statements . 236 Table 55: Argument values for DhSQLException.getDiagnostics . 243 Contents–3 Contents Table 56: Allowable values for fieldType in getParam . 250 Table 57: Allowable values for fieldType in getValue . 251 Table 58: Allowable values for fieldType in registerOutParam . 254 Table 59: Mapping between Java and JDBC data types . 265 Table 60: Mapping between JDBC and Java data types . 266 Table 61: Mapping between SQL-92 and Java data types . 266 Table 62: JDBC data type conversion . 267 Table 64: OpenEdge SQL and ODBC data types . 283 Table 65: Information the ODBC driver returns to SQLGetInfo . 285 Table 66: Scalar string functions . 306 Table 67: Scalar numeric functions . 308 Table 68: Date and time functions supported by ODBC . 309 Table 69: Scalar system functions supported by ODBC . 311 Table 70: Compliance of SQL DDL and DML statements . 344 Contents–4 Contents Figures Figure 1: ROUND digit positions . 117 Contents–5 Contents Contents–6 Preface This Preface contains the following sections: • Purpose • Audience • Organization • Typographical conventions • Examples of syntax diagrams (SQL) • Third party acknowledgements Preface Purpose OpenEdge Data Management: SQL Reference provides specific information on the OpenEdge® SQL language. The reference contains information on SQL statements, functions, reserved words, error messages, data type compatibility, and the language’s compliance with industry standards. The book also provides reference information on the ODBC and JDBC drivers. For the latest documentation updates see the OpenEdge Product Documentation category on PSDN http://www.psdn.com/library/kbcategory.jspa?categoryID=129. Audience The audience of this book is composed of two groups: • Database administrators will use the book to: – Create and maintain databases – Create, modify, and revoke user privileges – Tune database performance – Perform installation and setup of.
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages374 Page
-
File Size-