時間:2024-02-04 13:45作者:下載吧人氣:23
PostgreSQL sql放入文件,登入數據庫之后批量執行
1. 建立測試sql:
vi aa.sql
插入:猜測每條sql語句是用;分隔的,function中的多個;也會自動識別。
create table tb1(id integer);
insert into tb1 select generate_series(1,10);
select * from tb1;
delete from
tb1 where id<3;
select * from tb1;
網友評論