Jump to content

Auto id breaking my table move


tibberous

Recommended Posts

I have two tables, a temporary table and a real one. When a person starts filling out a request, I want to store their data in the temporary table, and if they confirm it, move it to the real table.

 

The real table has an auto incrementing id, the temporary one doesn't. If I do:

 

insert into `test` select * from `temporyTest`

 

I get a column count doesn't match error. Is there any way around this besides specifying all the fields except id? Should I just use one table and set a Status='Pending' option?

Link to comment
https://forums.phpfreaks.com/topic/141084-auto-id-breaking-my-table-move/
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.