Questions tagged «sql-scripts»

9
将PostgreSQL表中的特定行导出为INSERT SQL脚本
我有一个名为:的数据库模式nyummy和一个名为的表cimory: create table nyummy.cimory ( id numeric(10,0) not null, name character varying(60) not null, city character varying(50) not null, CONSTRAINT cimory_pkey PRIMARY KEY (id) ); 我想将cimory表的数据导出为插入SQL脚本文件。但是,我只想导出城市等于“东京”的记录/数据(假设城市数据全部为小写)。 怎么做? 解决方案是使用免费的GUI工具还是命令行都没关系(尽管GUI工具解决方案更好)。我曾经尝试过pgAdmin III,但是找不到执行此操作的选项。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.