Is SQL used by PDO database independent?
Posted
by Pheter
on Stack Overflow
See other posts from Stack Overflow
or by Pheter
Published on 2010-05-14T17:44:52Z
Indexed on
2010/05/14
17:54 UTC
Read the original article
Hit count: 312
Different databases have slight variations in their implementations of SQL. Does PDO handle this?
If I write an SQL query that I use with PDO to access a MySQL database, and later tell PDO to start using a different type of database, will the query stop working? Or will PDO 'convert' the query so that it continues to work?
If PDO does not do this, are there any PHP libraries that allow me to write SQL according to a particular syntax, and then the library will handle converting the SQL so that it will run on different databases?
© Stack Overflow or respective owner