简体   繁体   中英

Is there a way to do a incremental export from mssql to mysql?

I exported a SQL database to MySQL database through Laravel seeder . The full export requires 6-7 hours. Now, after the full export, is there a way to export only new or updated records? Not all of the database tables have a timestamp column.

Thanks

If in your SQL table if any date column is available then you can extract it ,because when you are updating or inserting any records then date column will be updated with current date and time.

So query will be ...

Use [Your_Database]
GO
SELECT *
FROM Your_table
WHERE your_date_column >= DATEADD(HH, - DATEPART(HH, GETDATE()), GETDATE())

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM