DECLARE 聲明變量 CURSOR cursor_name IS 聲明游標 SELECT column1, column2 FROM table_name; 查詢(xún)語(yǔ)句BEGIN 初始化變量END;