Skip to content

Instantly share code, notes, and snippets.

@lilac
Created November 15, 2017 13:06
Show Gist options
  • Save lilac/92c979e24260f675773a2c91af73b5e0 to your computer and use it in GitHub Desktop.
Save lilac/92c979e24260f675773a2c91af73b5e0 to your computer and use it in GitHub Desktop.
Conditional insert into log
insert into red_packet select 3, 20.0 from red_packet having sum(amount) < 10;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment