January 3rd, 2013, 01:57 PM
Database scripts in pgSql or in pgScript?
If i need some procedural script to be run in Oracle datbase, then i just write code with PLSQL and execute it with any Oracle client program/IDE. With Sql Server the same is done with T-SQL. What language do you suggest for Postgre database such scripts? The pgScript works only in program pgAdmin, other IDe's does not support this syntax, right? And pgSQL does not allow to write anonymous script blocks, right? It inly allows to write functions, triggers basically, but not script blocks, right?
So, both pgScript and plSql are bad choices for scripts, right? what else to use then? Or how is the proper way to do? Maybe optimal way is to use only plSql for all scripts and developing, and just write lot of functions for each script you want and execute the functions in pgAdmin or any IDE/tool once and deleting the function immediately after.
January 3rd, 2013, 03:56 PM
Originally Posted by applefarm
Comments on this post
I will not read nor answer questions where the SQL code is messy and not formatted properly using [code] tags.
Tips on how to ask better questions:
January 4th, 2013, 01:47 AM
Seems really one can use DO-block and forger about the pgScript.