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 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. 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 Link to comment https://forums.phpfreaks.com/topic/50830-solved-insert/#findComment-249944 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.