Tag: ltree

JDBC中的Java类型为Postgres ltree

有谁知道什么Java类型映射到Postgres ltree类型? 我像这样创建一个表: CREATE TABLE foo (text name, path ltree); 几个插页: INSERT INTO foo (name, path) VALUES ( ‘Alice’, ‘ROOT.first.parent’); INSERT INTO foo (name, path) VALUES ( ‘Bob’, ‘ROOT.second.parent’); INSERT INTO foo (name, path) VALUES ( ‘Ted’, ‘ROOT.first.parent.child’); INSERT INTO foo (name, path) VALUES ( ‘Carol’, ‘ROOT.second.parent.child’); 没什么奇怪的。 现在我想使用PreparedStatment批量处理它: public final String INSERT_SQL = “INSERT […]