Perform a search within the range of database in Navicat Premium

If you have ever tried to locate specific columns in large databases, then I think you'll agree that this can be a daunting task. You can gather a lot of information about the structure of DB from information_schema mode. It has a list of all the fields of all the tables and tables. You can then use the information obtained from the table to run the query. Specific tables involved is SCHEMATA, TABLES and COLUMNS. There are some foreign keys, so you can build exactly how to create tables in the schema.

However, a simpler method to perform a search within the database range is to use Navicat Premium. In Non-Essentials Edition Navicat available, provides a "lookup database / schema" function is used to find the data in the database and / architecture table / view or an object or structure. In today's article, we will learn how to use it.

Navicat Premium is a database development tool that allows you to connect simultaneously from a single application to MySQL, MariaDB, MongoDB, SQL Server, Oracle, PostgreSQL and SQLite databases. , Amazon Aurora, Amazon Redshift, Microsoft Azure, Oracle Cloud, Google Cloud and cloud databases such as MongoDB Atlas compatible with Amazon RDS. You can quickly and easily build, manage and maintain databases.


Positioning column

We first look for one in the database. We want to find "release_year" column in Sakila sample database. This is our approach:

  • Open the Find window in the database / schema; select Tools from the menu bar -> Find database / schema.

  • Select the destination connection, or database schema.

  • In the "Find what" text box, enter the search string.

  • Select the "structure" item in the "Look in" drop-down list. Of course, another option is "data."

  • Select "search mode." The options include whole words, prefixes or regular expressions.

  • Select the "case-insensitive" box to disable case-sensitive search.

  • Because we chose the "structure" in the "Look in" drop-down list, so we can now choose different search objects, including tables, views, functions, queries or events.

    After filling all or selected fields, the form should be as follows:

    Navicat Tutorial: perform a search within the database range in the Navicat Premium

  • Now, go ahead and click the "Find" button to get results. In this case established, Navicat will table a "release_year" string matching:

    Navicat Tutorial: perform a search within the database range in the Navicat Premium

    You can double-click on an object in the "Search Results" list to view the records or structure. It highlighted:

    Navicat Tutorial: perform a search within the database range in the Navicat Premium

Search data

Attempts to find a given value in the entire database without a search tool case is almost not worth it. In Navicat, we need to do is the same procedure as above, except now we will "find" drop-down menu, select "Data."

This is the choice "prefix" from "Search Mode" drop-down list of "JOHN" in the "Find what" value results:

Navicat Tutorial: perform a search within the database range in the Navicat Premium

As you can see, this more general search result in more matches.

Double-click on the object "Find Results" list again, the record will be displayed in a new tab:

Navicat Tutorial: perform a search within the database range in the Navicat Premium

Note Navicat generated query to obtain the desired results.

in conclusion

Navicat "Find in database / schema" tool greatly facilitates the lookup data structure or object or the entire database schema. Compared with the alternatives information_schema mode, virtually no competition.


Guess you like

Origin blog.51cto.com/14467432/2452340