Can I change the insert column names order? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can I change the insert column names order?

And if I change the INSERT INTO columns names? Go work? ie: I have the following column names order: 'Name | Lastname | Age'. Can I change this, in INSERT statement, to 'Lastname | Name | Age'?

9th Jul 2017, 6:40 PM
Franco L Dalto
Franco L Dalto - avatar
1 Answer
+ 4
I found it is possible. In next lesson I learned if I change the values order, it works fine! ie. INSERT INTO (Lastname, Name, Age) VALUES ('Lyrio Dalto', 'Franco', 35);
9th Jul 2017, 6:43 PM
Franco L Dalto
Franco L Dalto - avatar