When using * and column names differently, the query result is different in both the cases. There is a possibility that only the order is different but why is that as we haven't used any command to sort the data.
SELECT * FROM employees;
But when I query, the first_name, last_name column:
SELECT first_name,last_name FROM employees;
Lastly when I add a column that has an index on it,
the result is different again
SELECT employee_id, first_name,last_name FROM employees;
Why is the result is different?
I couldn't understand how first_name, last_name column values are ordered.
Thanks and regards.
question from:
https://stackoverflow.com/questions/66058547/different-query-results-using-and-column-names 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…