MySQL Forums
Forum List  »  General

Re: How to make small tables from big table? (SELECT INTO doesn't seem to work)
Posted by: Peter Brawley
Date: April 13, 2018 08:27AM

If tbl_stuff_01 exists, try ...

Insert Into tbl_stuff_01
select * from tbl_stuff limit ...

but note, Limit 5,0 means take 0 rows starting at the 5th row.

If the target tabke does not exist ...

Create Table tbl_stuff_01
select ...

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.