使用sql数据库在textfile中搜索字符串 [英] search string in textfile using sql database

查看:179
本文介绍了使用sql数据库在textfile中搜索字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每个人

我今天的问题是如何使用Sql数据库搜索文本文件中的字符串....





thxxs提前

我使用visual studio 2012 ultimate

everyone
my question for today is how to search a string in a textfile using Sql database ....


thxxs in advance
my using visual studio 2012 ultimate

推荐答案

等等,什么?我没有明白你的观点。您想使用SQL数据库在文本文件(.txt)中搜索内容吗?



它们是具有类似功能的两种不同的东西,用于将数据存储在文件系统中。您可以使用.txt文件存储纯文本(如果打算是格式化,则使用HTML内容),并使用SQL数据库以井井有条的方式(以带有行和列的表格形式!)和紧凑方式存储数据。



无论如何,它们并没有相互关联。文本文件无法搜索数据库中的内容(不可能!)和数据库,即使触发器和存储过程也无法搜索文本文件中的内容。但是,使用VB.NET,您可以在文本文件或SQL数据库中搜索类似的内容。



如何从VB.NET中搜索特定字符串到文本文件 [ ^ ](文本文件)

我如何使用Vb.net搜索我的记录 [ ^ ](数据库)
Wait, what? I didn't get your point. You want to search for the content in a text file (.txt) using SQL database?

They are two different things with similar functionality, to store the data on file system. You use .txt files to store plain text (or HTML content if formatting is intended) and you use SQL database to store data in a well organized way (in a table form with rows and columns!) and compact way.

In any way, they are not interconnected to each other. A text file cannot search for content in database (impossible!) and database even with triggers and stored procedures is not able to search for the content inside the text file. However, using VB.NET you somehow can search for similar content in either a text file or the SQL database.

How to search specific string into text file from VB.NET[^] (Text files)
How do i Search my record using Vb.net[^] (Database)


使用全文搜索 https://www.simple-talk.com/sql/learn-sql-server/understanding-full-text- indexing-in-sql-server / [ ^ ]


这篇关于使用sql数据库在textfile中搜索字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆