https://en.wikipedia.org/wiki/ACID https://zh.wikipedia.org/wiki/ACID //ACID compliant , row-level locking , FOREIGN KEY 行锁 表锁 //a small footprint , Table-level locking limits the performance in read/write workloads, so it is often used in read-only…
http://dev.mysql.com/doc/refman/5.7/en/create-table.html Data Types and Attributes for Columns data_type represents the data type in a column definition. spatial_type represents a spatial data type. The data type syntax shown is representative only.…
JDBC全称为:Java Data Base Connectivity (java数据库连接),可以为多种数据库提供统一的访问.JDBC是sun开发的一套数据库访问编程接口,是一种SQL级的API.它是由java语言编写完成,所以具有很好的跨平台特性,使用JDBC编写的数据库应用程序可以在任何支持java的平台上运行,而不必在不同的平台上编写不同的应用程序,功能类似于windows操作系统提供的ODBC服务,目前主流的数据库操作框架都是以JDBC为基础进行开发的,所以JDBC是JAVA连接数据以…
仔细研究了下,发现sql server里面的explicit transaction(显示事务)还是有点复杂的.以下是有些总结: Commit transaction 会提交所有嵌套的transaction修改.但是如果嵌套的transaction里面有rollback tran to save point, 那么save point之后的部分会revert掉. delete from dbo.numbertable begin tran out1 ) ) begin tran inn1 ) )…