功能,但並不功能...聲明變量不是在用我要聲明Postgres裏變量的Postgres
Declare
c varchar;
a integer;
b integer;
select b = count (*) from table
set a = 1
while a <= b
begin
select c = [c] from table where id = a
if (c = '1')
insert into table2 select(*) from table
end
set a = a+1
但錯誤錯誤:在語法錯誤或接近「VARCHAR」 LINE 2:C VARCHAR; ^ 我希望有人能幫助我