Rt.
For example, MySQL and window SQL server2008 all have table user1.
I use PDO to connect MySQL and server2008 separately,
$th = new PDO (' ... ', ' root ', ' 123 ');
Is it possible to use $th->prepare (' Inser into User1 values (1, ' name ', ' Joe ') ');
Can you manipulate different types of databases with SQL INSERT statements?
Reply content:
Rt.
For example, MySQL and window SQL server2008 all have table user1.
I use PDO to connect MySQL and server2008 separately,
$th = new PDO (' ... ', ' root ', ' 123 ');
Is it possible to use $th->prepare (' Inser into User1 values (1, ' name ', ' Joe ') ');
Can you manipulate different types of databases with SQL INSERT statements?
Of course not, the specific statement you still need to use the corresponding database of SQL dialect to write (each database of SQL implementation has a certain degree of difference)
No. That's why we like to use frames. Most frameworks will address differences in different databases! Basic write Once. Can be run in a variety of environments. to TP. Laravel. Codeignite will have this ability.
In fact, original aim, not much difference
Adding and deleting changes are basically consistent. Inconsistent is the database attribute.