時(shí)間:2024-02-07 12:09作者:下載吧人氣:36
1.打開VS Code拓展,搜索postgresql,這時(shí)就可以看到在線的支持postgresql的插件,這里我選擇的第一個(gè)插件(下載量最多的);
2.安裝postgresql插件,安裝完成之后,在左側(cè)就可以看到插件圖標(biāo);
3.點(diǎn)擊插件,輸入連接地址、用戶、密碼、端口等建立數(shù)據(jù)庫連接(本地已經(jīng)創(chuàng)建連接,點(diǎn)擊 + 添加新的連接);
3.連接上以后測試數(shù)據(jù)及結(jié)果如下:
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;
網(wǎng)友評論