DBeaver executes external sql files

T1: DBeaver executes external sql files

If the database already exists, right-click the library name directly, as shown in the figure below:

If the database does not exist and the external sql file contains database building statements, you can manually build the database first, then delete the database building statements in the sql file and execute the script.

This method is more troublesome. The method of directly executing the sql script is as follows:

First connect the external sql file in the Scripts folder,
insert image description here

Then associate the linked file with the data source,

insert image description here

Right-click on the connection name, create a new task,

insert image description here

Create a task to execute SQL scripts,

insert image description here

Select the script file just linked,
insert image description here

insert image description here

Then select the database to be executed. If the sql file is associated with the data source before, it will be automatically selected here.

insert image description here

continue,

insert image description here

If the task is no longer needed, you can delete the task,

You can delete it here.

Guess you like

Origin blog.csdn.net/wsnbbaa/article/details/129089538