SQL GrammarCommands (Data Manipulation)Commands (Data Definition)Commands (Other)Other GrammarSystem TablesInformation SchemaRange Table ${item.topic}${item.syntax} ${item.text} Example:${item.example} ${item.topic}${item.syntax} ${item.text} Example:${item.example} Information SchemaThe system tables in the schema 'INFORMATION_SCHEMA' contain the meta data of all tables in the database as well as the current settings.
Range TableThe range table is a dynamic system table that contains all values from a start to an end value. The table contains one column called X. Both the start and end values are included in the result. The table is used as follows: SELECT X FROM SYSTEM_RANGE(1, 10); @LOOPRuns the following SQL statement in a loop, with all instances of ? replaced by a counter from 0 to the end value. The @LOOP element can only be used from the H2 Console. The @LOOP element is used as follows: @LOOP 1000 INSERT INTO TABLE(id,name) VALUES (?,'Bob'); |