Keywords: Hsqldb, HyperSQL, Database, JDBC, Java

| HyperSQL User Guide |
|  | Preface

# HyperSQL User Guide

## HyperSQL Database Engine 2.6.0

#### Edited by ### The HSQL Development Group #### Edited by ### Blaine Simpson The HSQL Development Group #### Edited by ### Fred Toussi The HSQL Development Group 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. 2021-03-21 |

List of Tables

1. Available formats of this document
4.1. TO_CHAR, TO_DATE and TO_TIMESTAMP format elements
14.1. Memory Database URL
14.2. File Database URL
14.3. Resource Database URL
14.4. Server Database URL
14.5. User and Password
14.6. Closing old ResultSet when Statement is reused
14.7. Column Names in JDBC ResultSet
14.8. In-memory LOBs from JDBC ResultSet
14.9. Empty batch in JDBC PreparedStatement
14.10. Creating New Database
14.11. Automatic Shutdown
14.12. Validity Check Property
14.13. Execution of Multiple SQL Statements etc.
14.14. SQL Keyword Use as Identifier
14.15. SQL Keyword Starting with the Underscore or Containing Dollar Characters
14.16. Reference to Columns Names
14.17. String Size Declaration
14.18. Type Enforcement in Comparison and Assignment
14.19. Foreign Key Triggered Data Change
14.20. Use of LOB for LONGVAR Types
14.21. Type of string literals in CASE WHEN
14.22. Concatenation with NULL
14.23. NULL in Multi-Column UNIQUE Constraints
14.24. Truncation or Rounding in Type Conversion
14.25. Decimal Scale of Division and AVG Values
14.26. Support for NaN values
14.27. Sort order of NULL values
14.28. Sort order of NULL values with DESC
14.29. String Comparison with Padding
14.30. Default Locale Language Collation
14.31. Case-Insensitive Varchar columns
14.32. Storage of Live Java Objects
14.33. Names of System Indexes Used for Constraints
14.34. DB2 Style Syntax
14.35. MSSQL Style Syntax
14.36. MySQL Style Syntax
14.37. Oracle Style Syntax
14.38. PostgreSQL Style Syntax
14.39. Default Table Type
14.40. Transaction Control Mode
14.41. Default Isolation Level for Sessions
14.42. Transaction Rollback in Deadlock
14.43. Transaction Rollback on Interrupt
14.44. Time Zone and Interval Types
14.45. Opening Database as Read Only
14.46. Opening Database Without Modifying the Files
14.47. Huge database files and tables
14.48. Event Logging
14.49. SQL Logging
14.50. Temporary Result Rows in Memory
14.51. Unused Space Recovery
14.52. Rows Cached In Memory
14.53. Size of Rows Cached in Memory
14.54. Size Scale of Disk Table Storage
14.55. Size Scale of LOB Storage
14.56. Compression of BLOB and CLOB data
14.57. Internal Backup of Database Files
14.58. Use of Lock File
14.59. Logging Data Change Statements
14.60. Automatic Checkpoint Frequency
14.61. Automatic Defrag at Checkpoint
14.62. Compression of the .script file
14.63. Logging Data Change Statements Frequency
14.64. Logging Data Change Statements Frequency
14.65. Use of NIO for Disk Table Storage
14.66. Use of NIO for Disk Table Storage
14.67. Recovery Log Processing
14.68. Default Properties for TEXT Tables
14.69. Forcing Garbage Collection
14.70. Crypt Property For LOBs
14.71. Cipher Key for Encrypted Database
14.72. Cipher Initialization Vector for Encrypted Database
14.73. Crypt Provider Encrypted Database
14.74. Cipher Specification for Encrypted Database
14.75. Logging Framework
14.76. Text Tables
14.77. Java Functions
15.1. common server and webserver properties
15.2. server properties
15.3. webserver properties
17.1. Settings List

List of Examples

1.1. Java code to connect to the local hsql Server
1.2. Java code to connect to the local http Server
1.3. Java code to connect to the local secure SSL hsqls: and https: Servers
1.4. specifying a connection property to shutdown the database when the last connection is closed
1.5. specifying a connection property to disallow creating a new database
3.1. inserting the next sequence value into a table row
3.2. numbering returned rows of a SELECT in sequential order
3.3. using the last value of a sequence
3.4. Column values which satisfy a 2-column UNIQUE constraint
6.1. User-defined Session Variables
6.2. User-defined Temporary Session Tables
6.3. Setting Transaction Characteristics
6.4. Locking Tables
6.5. Rollback
6.6. Setting Session Characteristics
6.7. Setting Session Authorization
6.8. Setting Session Time Zone
11.1. Using CACHED tables for the LOB schema
11.2. Creating a system-versioned table
11.3. Displaying DbBackup Syntax
11.4. Offline Backup Example
11.5. Listing a Backup with DbBackup
11.6. Restoring a Backup with DbBackup
11.7. SQL Log Example
11.8. Finding foreign key rows with no parents after a bulk import
12.1. Using CACHED tables for the LOB schema
12.2. MainInvoker Example
12.3. Sample Range Ivy Dependency
12.4. Sample Range Maven Dependency
12.5. Sample Range Gradle Dependency
12.6. Sample Range ivy.xml loaded by Ivyxml plugin
12.7. Sample Range Groovy Dependency, using Grape
15.1. Exporting certificate from the server's keystore
15.2. Adding a certificate to the client keystore
15.3. Specifying your own trust store to a JDBC client
15.4. Getting a pem-style private key into a JKS keystore
15.5. Validating and Testing an ACL file
16.1. example sqltool.rc stanza
C.1. Buiding the standard HSQLDB jar file with Ant
C.2. Example source code before CodeSwitcher is run
C.3. CodeSwitcher command line invocation
C.4. Source code after CodeSwitcher processing

$Revision: 6319 $

|  | Preface