Advertisement
alestane

SQL :format example

Nov 7th, 2012
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.21 KB | None | 0 0
  1.     db:exec(
  2.         string.format([[
  3.             INSERT INTO history VALUES (
  4.                 datetime('now', 'localtime'),
  5.                 %d,
  6.                 %d,
  7.                 %q
  8.             );  ]],
  9.             statistics.HighScore,
  10.             statistics.MobCount,
  11.             statistics.Initials
  12.         )
  13.     )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement