如何搜索“搜索文本”在数据库中所有表。 [英] How to search a "Search Text" in database all table.
本文介绍了如何搜索“搜索文本”在数据库中所有表。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
用户输入需要在数据库中检查哪个表相关的文本。我们有n个表怎么做?。
User enter text that need to check in database which table is related. We have n Number of table how to do that?.
推荐答案
你可以使用目录存储过程 [ ^ ]获取数据库中的表列表,然后使用查询,例如 where [ ^ ]搜索所有文本列。
警告 - 这可能需要一些时间才能运行。
You can use the catalog stored procedures[^] to get a list of tables in your database then use a query such as the one here[^] to search all of the text columns.
Warning - this may take some time to run.
您可以尝试一个现成的程序:搜索SQL Server数据库的所有表中的字符串 [ ^ ]
There's a ready made procedure you can try: Search for a string in all tables of SQL Server Database[^]
这篇关于如何搜索“搜索文本”在数据库中所有表。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文