Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How different is Perl or PHP functionality in MySQL vs. PostgreSQL?

0
Posted

How different is Perl or PHP functionality in MySQL vs. PostgreSQL?

0

Noyes: This question could mean one of two things. It might be, “How do I write Perl or PHP code that uses a MySQL or PostgreSQL database?” Or, it might be, “Is it possible to write functions and procedures in MySQL and PostgreSQL using Perl or PHP?” For the former, there are a few choices. PHP offers extensions specific to MySQL and to PostgreSQL, so you might write code using mysql_query or pg_query. You can also use PDO or ODBC to connect in a more or less database agnostic manner. For the latter, PostgreSQL offers PL/Perl and PL/php, which allow you to write procedures in Perl and PHP. PL/Perl is currently more stable than PL/php. With the aid of some user-defined functions and a thread-safe compilation, it is possible to write functions for MySQL using Perl and PHP. See http://www.linuxjournal.com/article/6841 and http://www.sklar.com/page/article/myphp for details. It is possible that future versions of MySQL will allow a more “plug and play” approach to coding procedures in othe

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.