Solve the problem that after IDEA connects to the database, writing SQL statements in xml does not remind the database table fields

Sometimes we create a new project or a new project, and obviously connect to the database for this project or project, and everything is correct, but writing SQL statements in xml does not prompt the relevant fields in the database table, whether it is the table name or Well, it’s better to use the field name, if you don’t prompt at all, it’s a big headache to think of typing a lot of fields by hand.

But it doesn't matter, then the author will introduce how to solve this problem

1. Click File in the upper left corner of IDEA---->click Settings...
insert image description here


2. Enter SQL Dialects in the search box and press Enter

insert image description here


3. Select the database service you use in the box ①, and then click the + sign

insert image description here


4. Select the item you want to make effective, then click OK

insert image description here


5. Click OK

insert image description here


Then we found that writing SQL statements can prompt table names and field names
insert image description here


insert image description here


OK! ! ! Finish! ! !

Guess you like

Origin blog.csdn.net/qq_45344586/article/details/131479636