Visual Studio Code (VS Code) query PostgreSQL expansion installation

Visual Studio Code (VS Code) query PostgreSQL expansion installation

1. Open the VS Code extension, search for postgresql, then you can see online plug-ins that support postgresql, here is the first plug-in I chose (the most downloaded);

Insert picture description here

Insert picture description here

2. Install the postgresql plug-in, after the installation is complete, you can see the plug-in icon on the left;

Insert picture description here

3. Click the plug-in, enter the connection address, user, password, port, etc. to establish a database connection (the connection has been created locally, click + to add a new connection);

Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here

3. After connecting, the test data and results are as follows:
create table test (id int primary key, name varchar, create_date timestamp );

select * from test;

insert into test values (1, '001', now());
insert into test values (2, '002', now());

select * from test;

Insert picture description here
4. Mysql is similar. For details, please refer to: Using SQL on Vscode

Guess you like

Origin blog.csdn.net/sinat_23931991/article/details/112925627
Recommended