MySQL Forums
Forum List  »  PHP

Re: Insert returned values in another table.
Posted by: Peter Brawley
Date: March 19, 2015 02:31PM

Why not do it directly? Assuming your insert table is named tbl ...

insert into tbl
select stdid from students order by rand(UNIX_TIMESTAMP()) limit 5;

Options: ReplyQuote


Subject
Written By
Posted
Re: Insert returned values in another table.
March 19, 2015 02:31PM


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.