Hypersql User Guide Hypersql Database Engine 2.6.0

Hypersql User Guide Hypersql Database Engine 2.6.0

HyperSQL User Guide HyperSQL Database Engine 2.6.0 Edited by , Blaine Simpson, and Fred Toussi HyperSQL User Guide: HyperSQL Database Engine 2.6.0 by , Blaine Simpson, and Fred Toussi $Revision: 6319 $ Publication date 2021-03-21 Copyright 2002-2021 Blaine Simpson, Fred Toussi and The HSQL Development Group. Permission is granted to distribute this document without any alteration under the terms of the HSQLDB license. You are not allowed to distribute or display this document on the web in an altered form. Table of Contents Preface ........................................................................................................................................ xiv Available formats for this document ......................................................................................... xiv 1. Running and Using HyperSQL ....................................................................................................... 1 Introduction ............................................................................................................................. 1 The HSQLDB Jar .................................................................................................................... 1 Running Database Access Tools ................................................................................................. 2 A HyperSQL Database .............................................................................................................. 2 In-Process Access to Database Catalogs ....................................................................................... 3 Server Modes .......................................................................................................................... 4 HyperSQL HSQL Server ................................................................................................... 4 HyperSQL HTTP Server ................................................................................................... 5 HyperSQL HTTP Servlet ................................................................................................... 5 Connecting to a Database Server ......................................................................................... 5 Security Considerations ..................................................................................................... 6 Using Multiple Databases .................................................................................................. 6 Accessing the Data ................................................................................................................... 6 Closing the Database ................................................................................................................ 7 Creating a New Database .......................................................................................................... 7 2. SQL Language ............................................................................................................................. 9 SQL Standards Support ............................................................................................................. 9 Definition Statements (DDL and others) ............................................................................. 10 Data Manipulation Statements (DML) ................................................................................ 10 Data Query Statements (DQL) .......................................................................................... 11 Calling User Defined Procedures and Functions ................................................................... 11 Setting Properties for the Database and the Session ............................................................... 11 General Operations on Database ........................................................................................ 11 Transaction Statements .................................................................................................... 12 Comments in Statements .................................................................................................. 12 Statements in SQL Routines ............................................................................................. 13 SQL Data and Tables .............................................................................................................. 13 Persistent Tables ............................................................................................................ 13 Temporary Tables ........................................................................................................... 14 Short Guide to Data Types ....................................................................................................... 14 Data Types and Operations ...................................................................................................... 15 Numeric Types .............................................................................................................. 15 Boolean Type ................................................................................................................ 17 Character String Types .................................................................................................... 18 Binary String Types ........................................................................................................ 19 Bit String Types ............................................................................................................. 20 Lob Data ...................................................................................................................... 20 Storage and Handling of Java Objects ................................................................................ 21 Type Length, Precision and Scale ...................................................................................... 22 Datetime types ....................................................................................................................... 22 Interval Types ........................................................................................................................ 26 Arrays .................................................................................................................................. 29 Array Definition ............................................................................................................. 30 Array Reference ............................................................................................................. 31 Array Operations ............................................................................................................ 32 3. Schemas and Database Objects ...................................................................................................... 34 Overview .............................................................................................................................. 34 Schemas and Schema Objects ................................................................................................... 34 iii HyperSQL User Guide Names and References .................................................................................................... 35 Character Sets ................................................................................................................ 35 Collations ...................................................................................................................... 36 Distinct Types ................................................................................................................ 37 Domains ....................................................................................................................... 37 Number Sequences ......................................................................................................... 37 Tables .......................................................................................................................... 40 Views ........................................................................................................................... 40 Constraints .................................................................................................................... 40 Assertions ..................................................................................................................... 42 Triggers ........................................................................................................................ 42 Routines ....................................................................................................................... 42 Indexes ......................................................................................................................... 42 Synonyms ..................................................................................................................... 42 Statements for Schema Definition and Manipulation ..................................................................... 43 Common Elements and Statements .................................................................................... 43 Renaming Objects .......................................................................................................... 44 Commenting Objects ....................................................................................................... 45 Schema Creation ...........................................................................................................

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    373 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us