H2 database 应用】的更多相关文章

H2 Database做为轻量级的内嵌数据库,功能十分强大,而且运行时只需要一个jar包即可,下表是官网的描述: 更详细的对比见官网页面: http://www.h2database.com/html/features.html#comparison 下面是开发入门步骤: 一.maven中添加依赖项 <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId>…
http://www.h2database.com/html/main.html H2 Database Engine Welcome to H2, the Java SQL database. The main features of H2 are: Very fast, open source, JDBC API Embedded and server modes; in-memory databases Browser based Console application Small foo…
In pom.xml add dependency: <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframewo…
H2 Database H2 由纯 Java 编写的开源关系数据库,可以直接嵌入到应用程序中,不受平台约束,便于测试. h2数据库特点 (1)性能.小巧 (2)同时支持网络版和嵌入式版本,另外还提供了内存版 (3)有比较好的兼容性,支持相当标准的sql标准 (4)提供了非常友好的基于web的数据库管理界面 h2支持运行三种模式 Embedded (嵌入式) : 无需配置本地(或远程)数据库 ; 数据库连接关闭时,数据与表结构依然存在; In-Memory (内存模式): 同上,区别:数据库连接关…
Learn to configure H2 database with Spring boot to create and use an in-memory database in runtime, generally for unit testing or POC purposes. Remember an in-memory database is created/initialized when an application starts up; and destroyed when th…
以前对内存表的引用一直采用sqllite,由于sqllite对字段的局限性无法满足需要.后来对h2 有了一定青睐做了下应用.下面对h2进行介绍. 1. H2数据库引擎 H2数据库由Java编写的,它可以在许多不同的平台上运行.它与Java6和7目前,数据库开发,并在Windows8和Mac OS X使用Java6测试测试,但它也可以在许多其他的操作系统,并使用其他的Java运行时环境.所有主要的操作系统(Windows XP,Windows Vista中,Windows 7中的Mac OS,Ub…
1.纯手动start/stop package com.cnblogs.yjmyzz.h2; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import org.h2.tools.Server; import org.junit.Test; public cl…
H2最完整的资料下载地址: http://download.csdn.net/detail/yixiaoping/5956595       H2数据库使用   H2数据库介绍 常用的开源数据库:H2,Derby,HSQLDB,MySQL,PostgreSQL.其中H2,HSQLDB类似,十分适合作为嵌入式数据库使用,其它的数据库大部分都需要安装独立的客户端和服务器端.H2的优势:1.h2采用纯Java编写,因此不受平台的限制.2.h2只有一个jar文件,十分适合作为嵌入式数据库试用.3.性能和…
java -cp h2-1.4.187.jar org.h2.tools.Shell -url jdbc:h2:file:~/.h2/hzhssh -user sa 如果有个数据库的文件名为:hzhssh.h2.db,则数据库的名字即为 hzhssh,而不是hzhssh.h2.db. 帮助: http://www.h2database.com/html/tutorial.html#command_line_tools http://www.h2database.com/html/grammar.…
本例开发工具为 NetBeans,使用b2前提安装jdk. 第一步:在官网下载驱动包 :http://www.h2database.com ,本例版本为: h2-1.4.192.jar 第二步:安装开发工具及jdk (1) 开发工具为:netbeans 8.0.2 (2) jdk为 1.8.0.25 第三步:建立工程及代码如下 (1) 工程图  (2) 代码如下 /* * To change this template, choose Tools | Templates * and open t…