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);
2. Install the postgresql plug-in, after the installation is complete, you can see the plug-in icon on the left;
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);
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;
4. Mysql is similar. For details, please refer to: Using SQL on Vscode