The Natural Philosopher wrote:
Quote:
Erwin Moller wrote:
> Quote:
>I was surprised to see that my fav. database offers PHP as a scripting
>language Procedural language (eg stored procedures). Untill now I
>always used PgPL/SQL for that.
| >
Not with Postgres, but its cool with MySql.
|
I think you misunderstand Erwin's post. He's talking about the programming
language used for creating stored procedures within the database. That is,
not accessing database from a script, but the other way around: accessing
a script from the database.
See <http://en.wikipedia.org/wiki/Stored_procedure>.
MySQL only supports stored procedures written in SQL. (And has only
supported stored procedures *at all* since 5.0.)
PostgreSQL allows you to use SQL, C, Tcl, Perl or Python and allows you to
use others through plugins. Plugins are available for Java, Shell script,
and Scheme amongst others.
Erwin posted a link to a plugin allowing the use of PHP as a scripting
language within PostgreSQL. Indeed it looks doubleplusgood. I tend to use
PgPL/SQL (and T-SQL on MS SQL server) but will certainly give this a try.
--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 3:50.]
Best... News... Story... Ever!
http://tobyinkster.co.uk/blog/2008/03/23/hypnotist/