I looked through my favorite W3schools and found this page and actually found out something interesting. I did not know that you could invoke the insert command without specifying value columns. For example:
INSERT INTO table_name VALUES (value1, value2, value3,...)
Pulling out of my vague memory, I seem to remember how SQL prof mentions that you should process the fields as if they were not in any particular order (although there is on the RDB side, but this is not guaranteed).
My question is, how does the server know which values are assigned to which fields? * I would experience it myself, but I’m not going to use the production server that I currently have access to.
If this technology is specific, I'm working on PostgresSQL. How is this particular syntax even useful?
Chad harrison
source share