Navicat will model the generation table

After logging in to the database, click Model - New Model, click the icon under "Little Hand" as follows - double-click the blank space on the right, and a table will appear, which can be named. At this time, we name it as A. Double-click the blank space under the A table. ---You can design the properties of table A, click OK. In the same way, how to generate a B table so that A and B tables can be connected according to foreign keys? Double-click the blank of table A to obtain the following properties, click the foreign key, and fill in the following information. The name can be chosen arbitrarily, and the bar position is the A table attribute, which needs to be connected to the outside. Reference mode can be left blank. The field reference table selects the table to be referenced, such as the B table, and the reference bar is to select the attribute of the B table to associate with the A table. At this time, a foreign key is established in the A table, indicating that A is the slave table and B is the main table. When saving the above foreign key setting problem, you will find that there is a line between the A and B tables associated. At this time, the model is established, save the model, and name the model AB. It will be saved in MySQL by default, and its save will not let you choose a save location, but can only be saved in MySQL by default. As shown in the figure below, how to export the model, in the AB model interface-----three-bar drop-down list----tool-----export SQL, the save interface will pop up. Look, the above is saved on the desktop. At this time, there will be an AB.sql file on the desktop. For example, if you want to use this model, log in to the table---select the run SQL file---find the AB.sql file and run it. come to conclusion.

Navicat <wbr>for <wbr>Use model in mysql?




Navicat <wbr>for <wbr>Use model in mysql?



Navicat <wbr>for <wbr>Use model in mysql?

Navicat <wbr>for <wbr>Use model in mysql?

Navicat <wbr>for <wbr>Use model in mysql?

Navicat <wbr>for <wbr>Use model in mysql?

Navicat <wbr>for <wbr>Use model in mysql?

Navicat <wbr>for <wbr>Use model in mysql?




Navicat <wbr>for <wbr>Use model in mysql?



Navicat <wbr>for <wbr>Use model in mysql?

Navicat <wbr>for <wbr>Use model in mysql?


Navicat <wbr>for <wbr>Use model in mysql?

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324603821&siteId=291194637