域名預(yù)訂/競(jìng)價(jià),好“米”不錯(cuò)過(guò)
1.打開(kāi)VS Code拓展,搜索postgresql,這時(shí)就可以看到在線的支持postgresql的插件,這里我選擇的第一個(gè)插件(下載量最多的);


2.安裝postgresql插件,安裝完成之后,在左側(cè)就可以看到插件圖標(biāo);

3.點(diǎn)擊插件,輸入連接地址、用戶、密碼、端口等建立數(shù)據(jù)庫(kù)連接(本地已經(jīng)創(chuàng)建連接,點(diǎn)擊 + 添加新的連接);









3.連接上以后測(cè)試數(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;

4.Mysql也是類似,詳情可參考:Vscode上使用SQL
文章來(lái)源:腳本之家
來(lái)源地址:https://www.jb51.net/article/204596.htm
申請(qǐng)創(chuàng)業(yè)報(bào)道,分享創(chuàng)業(yè)好點(diǎn)子。點(diǎn)擊此處,共同探討創(chuàng)業(yè)新機(jī)遇!