For example: We import a customer's information, we know that the customer's name is Zhangshan, we want to know, in our business database (Eg:northwind), which of the data tables which fields set the name value Zhangshan, through the following SQL,
Recently, due to the ERP project, we need to know which tables and columns of the background database are written in the Application Operation of the Foreground Data Import function.
Recently, due to the ERP project, we need to know which tables and
Sometimes we only know the name of the column, but do not know which table the data in the end, you can use the following method to find the table containing this data.
Copy Code code as follows:
Select o.name objectname, c.name
15. Use Transact-SQL and Enterprise Manager to manage data tablesModifying a data table with a T-SQLUse Enterprise Manager to modify data tablesImpact of modifying a data tableDelete A data tableSummaryIn Chapter 10th, you have learned how to create
Search for keywords from all tables and all databases
-- 1 simple query: Search for keywords in all tables
Declare @ STR varchar (100)Set @ STR = 'A' -- string to be searched
Declare @ s varchar (8000)Declare TB cursor localSelect 'if exists
MS SQL Server Query optimization methodThere are many reasons for the slow speed of queries, which are common1, no indexes, or no indexes (this is the most common problem with query slowness, is the flaw in programming)2, I/o throughput is small,
35. use SQL query analyzer and SQL profilerUse SQL query AnalyzerUse SQL profilerOptimize T-SQL statementSummaryIn this chapter, we will continue with the description of the pre-stored procedures in Chapter 21st. This chapter describes how to use
How Does Oracle search for fields containing a certain value in all tables of the current user? CreateorreplaceprocedureMY_Pro_SearchKeyWordisv_sqlVARCHAR2 (40
How Does Oracle search for fields containing a certain value in all tables of the current
SQL statement optimization improves database performance and SQL statement database performance
In systems with unsatisfactory performance, apart from the fact that the application load exceeds the server's actual processing capacity, it is more
30. Microsoft SQL Server ManagementAutomatic Setting of SQL ServerDatabase Maintenance PlanSummaryUsing appropriate settings and performing routine maintenance tasks in the database is the key to optimizing the server. This chapter describes the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.