问题将数据从 Excel 导入到 SQL Server 2005

发布于 2024-09-07 13:06:38 字数 167 浏览 1 评论 0原文

您好,我正在将数据从 Excel 导入到 SQL Server 2005。它工作正常。问题是

1) 在 Excel 的一整列中,我有一些原始信息,如何溢出这些信息并将其存储在 SQL 字段中。

2)许多字段中都有单引号('),因此在执行 SQL 之前如何将它们转换为类似('')的内容。

Hi I m importing Data from Excel to SQL Server 2005. It is Working fine. The problem is

1) In one full column of Excel i have some Raw information how to spilt those information and store in SQL fields.

2) There is Single quotes (') in many fields so how to convert those to as something like ('') before taking to SQL.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

避讳 2024-09-14 13:06:38

首先将 Excel 数据导出为制表符分隔或 CSV。然后使用 Perl 或 sed 或带有正则表达式查找和替换的编辑器进行更改。

First export your Excel data to tab-delimited or CSV. Then make your changes using Perl or sed or an editor with a regex find and replace.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文