Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4053728
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:29:03+00:00 2026-05-20T14:29:03+00:00

what is the difference / advantage of using PDOStatement instead of regular Mysql?

  • 0

what is the difference / advantage of using PDOStatement instead of regular Mysql?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T14:29:03+00:00Added an answer on May 20, 2026 at 2:29 pm

    I’m not sure what you mean by “regular MySQL” but I’m concerned that you might mean string-concatenated queries. So the most direct advantage of using a framework like PDO is to use prepared and parameterized queries. This reduces the risk of SQL injection (but doesn’t necessarily eliminate it, so don’t think that) and at the same time, depending on the database server, may allow the server to better cache query execution plans to improve performance.

    At a higher level, the idea behind using a framework like this is to abstract the actual data access componentry out of the application logic a little more, which is always a worthy goal. Basically, rather than interfacing directly with the database, you’d be interfacing primarily with the data access framework (which in this case can still keep you tightly coupled with the database implementation, so be aware of that) and let it handle the database access. One of the primary benefits to this approach is that, if you change a database implementation (such as move from MySQL to PostgreSQL) then you don’t need to change your code. You just use the latter’s implementation of PDO as a drop-in replacement for the former’s.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm aware of the general difference but what is the exact purpose/advantage of using
Is there any advantage to using C++ instead of C# when using Direct3D? The
What is the difference between using int and uint? All the examples I have
in an href in html, whats the difference between using <a href=http://www.somesite.com/ name=The Name>
What's is the advantage of using Asynchronous processing in SQL Server over .NET Asynchronous
Is there any functional difference between using the intent-filter Intent myIntent = new Intent(com.this.that.MYACT);
I'm using Google App Engine and storing users. Before, I was using MySQL with
Is there any real advantage to using the jQuery AJAX function over the type
What is the advantage of using bundle during iPhone development? p.s. I see many
For persistent storage of data is there any distinct advantage of using a SQLlite

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.