Skip to content

Instantly share code, notes, and snippets.

@nise-nabe
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nise-nabe/9952894 to your computer and use it in GitHub Desktop.
Save nise-nabe/9952894 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"strings"
)
func main() {
for m := 0; m < 1000; m++ {
fmt.Println("INSERT INTO tweet (`user_id`, `tweet`) VALUES")
str := make([]string, 10000)
for i := 0; i < 10000; i++ {
str[i] = fmt.Sprint("(", m, ",", "\"ツイート", i ,"\"", ")")
}
fmt.Println(strings.Join(str, ","), ";")
}
fmt.Println(";")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment