As Nick said PL/SQL and T-SQL are very complex, but often you can convert a complex language construct in a much less complex one in Ingres.
E.g. in SQLServer you can use cursors within a stored procedure:
Code:
DECLARE my_cursor CURSOR FOR SELECT ... FOR UPDATE;
OPEN my_cursor;
FETCH NEXT FROM my_cursor ...;
WHILE ::FETCH_STATUS = 0
BEGIN
<statements>
FETCH NEXT FROM my_cursor;
END;
CLOSE my_cursor;
DEALLOCATE my_cursor;
You can't declare a cursor in Ingres DB Procedures, but there is much easier way to get the same:
Code:
FOR SELECT ...
DO
<statements>
ENFDOR;
An conversion tool will often just try a 1:1 translation, which often also means bad performance, etc.
Using your gray cells is a viable alternative