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

  • Home
  • SEARCH
  • 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 3308688
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:33:04+00:00 2026-05-17T21:33:04+00:00

I think it’s possible to write select queries with either Zend_Db_Select or Zend_Db_Table_Abstract, but

  • 0

I think it’s possible to write select queries with either Zend_Db_Select or Zend_Db_Table_Abstract, but I don’t understand when to use which of the two.

Is one more optimized for something than the other? Are joins “easier” with one or the other?

Thanks!

  • 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-17T21:33:04+00:00Added an answer on May 17, 2026 at 9:33 pm

    There are a few different options in producing queries, for historical reasons.

    In early versions of Zend Framework, Zend_Db_Tables had a method fetchAll with parameters where, order, offset and limit which you could use to fetch rows from a table. Developers soon found limitations with this approach. How would you add a GROUP BY clause?

    Zend_Db_Select was invented to solve this problem, and you’ll notice that since ZF 1.5, the fetchAll and related methods accept a Zend_Db_Select instance as the first parameter. Using the other parameters of fetchAll is now deprecated and you should pass in either an SQL string or a Zend_Db_Select object.

    A Zend_Db_Select is simply a programmatic interface for building an SQL query. It’s great for changing parts of the SQL based on user input or different factors, as instead of manipulating strings, you can just change the method calls and arguments.

    Zend_Db_Table will return a Zend_Db_Table_Select (a Zend_Db_Select subclass) instance with its table name predefined if you call its select method – this is about the only difference between Zend_Db_Select and Zend_Db_Table_Select.

    Your consideration really is whether to use Zend_Db_Select or to write SQL manually. Zend_Db_Select isn’t infinitely flexible but it is easy to read, manipulate and work with.

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

Sidebar

Related Questions

Think about the games like Spiral Knights and Minecraft(Which I believe both use LWJGL)
I think I'm on to a good idea, but don't know how to implement
Think: tiling my emacs window with eshells, a la xmonad. Is this possible? I
I think I have a basic understanding of this, but am hoping that someone
I think everyone knows this site http://pinterest.com/ and I don't want to create site
I think this could be a very easy question for you. But I have
I think that asking this might be kind of silly but I'm still wondering
I think it will be very hard for you to read the code but
I think this has probably been asked, but after reading a lot, I'm not
Think about a rectangular div, which is split into 2 parts, each part is

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.