try this, it will insert missing lines into lin2world for all accounts that are defined in lin2db (maybe u have to change the script to fit your db structure)
[php:1:72ff948c5c].
INSERT INTO lin2world.dbo.time_data
SELECT a.uid, '2004-01-01', 0
FROM lin2db.dbo.user_account a
LEFT OUTER JOIN time_data t ON a.uid = t.account_id
WHERE (t.account_id IS NULL)
[/php:1:72ff948c5c]
|