Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
it don't work that way...
When you make an update, you have to tell which column and which row(s) you want to update.
Code:
update {table} set {col}={value} where {key}={key_value}
In my opinion, what you need here is an insert into query.
This is a ms sql server 2000/2005 syntax, I don't know how it would react on another database:
Code:
insert into cscart_access_restriction_emailcc
select *
from cscart_access_restriction_emailcc
But of course you are bound to run into problems...
The item_id will certainly conflict between the 2 databases, and you cannot update them blindly, as for sure there are relations put between the data in the item table and those in your access_restriction table.
Simply put, there is no simple, easy and conflict free road to do what you need to do. You will need to write a script that will read each line of the new database, and insert it in the correct tables, with the good referential keys maintained.
Trivial if you have realized the schema yourself. Infernal if you have to understand every relationship and don't have any infos...
__________________
Only a biker knows why a dog sticks his head out the window.
|