I have to convert this script, but i didn't. This is stored procedure of sql. I need to convert to postgresql...


if it is possible please help me!
Thanks
Fatma

Code:
 
CREATE PROCEDURE usp_generatetable(@prm_tableID int, @prm_langID int)
as 
begin
	declare @table_id int, @field_id int, @match_code varchar(50), @value varchar(250), @first_field int, 
		@query_text varchar(8000),
...