will the order of columns change when that in the query is changed ? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

will the order of columns change when that in the query is changed ?

like : "select name,place from tb1" and "select place,name from tb1"......Will they give the same output order?

16th Aug 2016, 3:26 PM
KRISHNA CHAITHANYA MOVVA
KRISHNA CHAITHANYA MOVVA - avatar
2 Réponses
0
yes the columns appear in the same order as they appear in the select statement.
16th Aug 2016, 9:17 PM
Gareth Ahern
Gareth Ahern - avatar
0
query on the target table will not change the table column but the query result will be at the same order as you write.
23rd Aug 2016, 6:05 PM
Raton Kumar
Raton Kumar - avatar