Created
September 14, 2012 15:36
Revisions
-
tell-k revised this gist
Sep 14, 2012 . 1 changed file with 11 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,2 +1,11 @@ INSERT INTO entries (id, text, created_at) VALUES (%s, %s, %s) (1, 'entrytext1', datetime.datetime(2012, 9, 15, 0, 39, 7, 668106)) SELECT entries.id AS entries_id, entries.text AS entries_text, entries.created_at AS entries_created_at FROM entries WHERE entries.id = %s LIMIT %s (1, 1) UPDATE entries SET text=%s WHERE entries.id = %s ('hogehoge', 1L) -
tell-k created this gist
Sep 14, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ SELECT * FROM entries WHERE entries.id = 1 LIMIT 1 UPDATE entries SET text="hogehoge" WHERE entries.id = 1