The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

douglasv (316) [Avatar] Offline
#1
will there be sample data to insert into mysql?
ndimiduk (30) [Avatar] Offline
#2
Re: sample data
I'm sorry, MySQL?
douglasv (316) [Avatar] Offline
#3
Re: sample data
having not read your recent re-write, I don't know if mysql is featured again ,
but your gushing over mysql with the performance/analytic s monitor seemed
out of place in your first writing attempt!
You don't need to be sorry, this is MEAP!
benslinkard (56) [Avatar] Offline
#4
Re: sample data
INSERT [LOW_PRIORITY | HIGH_PRIORITY] [IGNORE]
[INTO] tbl_name [(col_name,...)]
SELECT ...
[ ON DUPLICATE KEY UPDATE col_name=expr, ... ]

With INSERT ... SELECT, you can quickly insert many rows into a table from one or many tables. For example:

INSERT INTO tbl_temp2 (fld_id)
SELECT tbl_temp1.fld_order_id
FROM tbl_temp1 WHERE tbl_temp1.fld_order_id > 100;