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 8351495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:38:54+00:00 2026-06-09T08:38:54+00:00

Was looking through the beloved W3schools and found this page and actually learned something

  • 0

Was looking through the beloved W3schools and found this page and actually learned something interesting. I didn’t know you could call an insert command without specifying columns to values. For example;

INSERT INTO table_name
 VALUES (value1, value2, value3,...)

Pulling from my hazy memory, I seem to remember the SQL prof mentioning that you have to treat fields as if they are not in any particular order (although there is on the RDB side, but it’s not guaranteed).

My question is, how does the server know which values get assigned to which fields?* I would test this myself, but am not going to use a production server to do which is all I a have access to at the moment.

If this technology specific, I am working on PostgresSQL. How is this particular syntax even useful?

  • 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-06-09T08:38:55+00:00Added an answer on June 9, 2026 at 8:38 am

    Your prof was right – you should name the columns explicitly before naming the values.

    In this case though the values will be inserted in the order that they appear in the table definition.

    The problem with this is that if that order changes, or columns are removed or added (even if they are nullable), then the insert will break.

    In terms of its usefulness, not that much in production code. If you’re hand coding a quick insert then it might just help save you typing all the column names out.

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

Sidebar

Related Questions

Looking through the dom.js source from the Closure library I found this (in goog.dom.getElementsByTagNameAndClass_
After looking through W3Schools I'm still not sure if this is possible or not.
Looking through Java EE6 API I've found interesting package javax.xml.registry.infomodel , containing such interfaces
Looking through this C++ BigInt library and found the BigInt.cpp file. At the top
Looking through the Android apis I found a method call isUserAMonkey() , says it
Looking through the documentation for Highstocks, I found this example : Shown here is
While looking through some code (javascript), I found this piece of code: <script>window.Bootloader &&
While looking through the transformers package, I found this monad transformer called IdentityT .
Looking through the massive android source code, anyone on here who know where exactly
While looking through some old code I came across this gem: MyObject o =

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.