简体   繁体   English

有什么方法可以将 csv 文件从 sql cmd 导入 firebird?

[英]any way to import csv file to firebird from sql cmd?

I need to import few columns from csv file into firebird temp table but not using any tool only from sql editor aka openrowset in SQL server.我需要将 csv 文件中的几列导入 firebird 临时表,但不能仅使用来自 SQL 编辑器(即 SQL Server 中的 openrowset)的任何工具。 is it supported?是否支持? thanks谢谢

firebird doesn't have a load statement, but several tools have an import module. firebird 没有 load 语句,但有几个工具有一个 import 模块。 Easest is to edit the file into a set of insert statements最简单的就是将文件编辑成一组插入语句

You can have look at Data Transformer (disclaimer - I'm its developer).您可以查看Data Transformer (免责声明 - 我是它的开发人员)。 It can convert between CSV (an other formats) to SQL.它可以在 CSV(其他格式)和 SQL 之间进行转换。 The generated SQL contains "insert" statements for each line and a "create table" statement.生成的 SQL 包含每行的“插入”语句和“创建表”语句。

It works offline - the data never leaves your computer.它离线工作 - 数据永远不会离开您的计算机。

You can get it from the Mac App Store or theMicrosoft Store .您可以从Mac App StoreMicrosoft Store获取它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM