How would I select records in a database and insert them into another in MySQL? -


I am trying to copy the records from one database to another and shorten them by type. That is, all records of type "holiday" will be copied. Even when I run this statement, I still get an error.

MySQL statement:

 In  nfb_events.nfb_events INSERT (`id`,` name`, `type`,` host`, `location`,` date`, 'Start Time', 'Endime', `Description ') * Select Eagle_Events with Email. Eagle events where `type '=" vacation ";  

Error:

  Error code: 1265. Data is minimized for column 'type' in line 1  

I do not understand; "Type" records are only 10 characters long. I am using MySQL workspace.

I explicitly call select * :

< Select ' `nfb_events.nfb_events (` ID`, `name`,` type`, `host`,` location`, `date`,' start time ', endatame,` description'] , `Name`,` type`, `host ',` place`, `date`,' start time ',' end time ',' description 'eagle_sites.agles_vents' type` = 'leave';

One possibility is that the columns are made in a separate sequence in two tables, so it ensures that the right data is going to the correct column.

If this does not work, to check the types of all the columns in each table, make sure they are identical.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -