poe Posted May 10, 2007 Share Posted May 10, 2007 when inserting data into a db, do you have to do it in the same order the actual db fields are? ie. can i inset data like: INSERT INTO table (`pet`, `age`, `name`, `color`) VALUES ('dog', '27', 'chris', 'red') even though the actual order of my dbtable is: name, color, age, pet Quote Link to comment https://forums.phpfreaks.com/topic/50830-solved-insert/ Share on other sites More sharing options...
effigy Posted May 10, 2007 Share Posted May 10, 2007 when inserting data into a db, do you have to do it in the same order the actual db fields are? No. can i inset data like: INSERT INTO table (`pet`, `age`, `name`, `color`) VALUES ('dog', '27', 'chris', 'red') even though the actual order of my dbtable is: name, color, age, pet Yes. Quote Link to comment https://forums.phpfreaks.com/topic/50830-solved-insert/#findComment-249941 Share on other sites More sharing options...
poe Posted May 10, 2007 Author Share Posted May 10, 2007 awsome! thanks Quote Link to comment https://forums.phpfreaks.com/topic/50830-solved-insert/#findComment-249944 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.