Skip to content

Instantly share code, notes, and snippets.

@donniebrandt
Last active December 28, 2015 06:09
Show Gist options
  • Select an option

  • Save donniebrandt/7454998 to your computer and use it in GitHub Desktop.

Select an option

Save donniebrandt/7454998 to your computer and use it in GitHub Desktop.
MySQL: Select into.
INSERT INTO `target` (`column1`, `column2`)
SELECT `column1`, `column2` FROM `source`
WHERE `column1` > 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment