Jump to content

[SOLVED] insert...


poe

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.