web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Difference between select table and select * from table

(0) ShareShare
ReportReport
Posted on by

What is the difference between select table and select * from table?

I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,827 Moderator on at

    Hi brian,

    There is not much difference between the two select statements. I think both will return the same results.

    Refer to the below microsoft documentation.

    https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-ref/xpp-data/xpp-select-statement

    Thanks,

    Girish S.

  • Verified answer
    Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at

    It's the same. By the way, you can verify such things by yourself by looking at the resulting SQL code. For example:

    ATable aTable;
    select generateOnly aTable;
    info(aTable.getSQLStatement());

  • Suggested answer
    huijij Profile Picture
    19,811 on at

    Hi brianmaric,

    There is a similar discussion here that you can refer to, and generally there are no hard and fast rules.

    stackoverflow.com/.../is-there-a-difference-between-select-and-select-list-each-col

  • Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at

    The link is about a different topic: whether to select all fields by * or to explicitly name fields to select.

    This thread is about two different ways how to select all fields. select table and select * from table results in identical SQL query.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans