Jump to content

Stupid question


KevinM1

Recommended Posts

The order of your declared columns really only matters to you. Keep in mind that whatever order you create your columns in is going to be the default order of values for INSERT statements as well. With this in mind, order doesn't necessarily matter as long as you keep track of what order to insert you values.
Link to comment
https://forums.phpfreaks.com/topic/25713-stupid-question/#findComment-117355
Share on other sites

[quote author=obsidian link=topic=113366.msg460601#msg460601 date=1162311235]
The order of your declared columns really only matters to you. Keep in mind that whatever order you create your columns in is going to be the default order of values for INSERT statements as well. With this in mind, order doesn't necessarily matter as long as you keep track of what order to insert you values.
[/quote]

Ah, I should've phrased my initial question better...  ;D

I'm wondering about the [i]attributes[/i] (like auto_increment, not null, etc) -- is there a certain order they're supposed to go in after the column name and datatype have been declared?
Link to comment
https://forums.phpfreaks.com/topic/25713-stupid-question/#findComment-117367
Share on other sites

[quote author=Nightslyr link=topic=113366.msg460613#msg460613 date=1162311969]
I'm wondering about the [i]attributes[/i] (like auto_increment, not null, etc) -- is there a certain order they're supposed to go in after the column name and datatype have been declared?
[/quote]

Not that I know of. I'll leave the precision of this answer up to fenway, though ;)
Link to comment
https://forums.phpfreaks.com/topic/25713-stupid-question/#findComment-117370
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.