„How and When to Write SQL in PL/SQL“ – Steven Feuerstein

Ein interessanter Beitrag von Oracle’s PL/SQL Evangelist Steven Feuerstein auf der Oracle Learning Library Platform

Die gemachten Aussagen gelten nicht nur für Oracle, sondern für jedes RDBMS:

  • „SQL statements directly reflect our business models“
  • „You should do as much as possible in pure SQL“
  • „Don’t put the SQL statements in Java or […] Fight the good fight!“
    • „hide complex queries behind views“
    • „put your other SQL statements in PL/SQL packages […], hiding the SQL behind an API of procedures and fucntions“
  • „Set standards for writing SQL in your applications!“