UPDATE [dnt_stats] SET [count]=[count]+1 WHERE ([type]='total' AND [variable]='hits') OR ([type]='month' AND [variable]='201009') OR ([type]='week' AND [variable]='3') OR ([type]='hour' AND [variable]='04')
TIME: 0
SELECT * FROM [dnt_photos] WHERE [photoid] = @photoid
@photoid
@albumid
Int32
Int32
340
0
TIME: 0
SELECT * FROM [dnt_albums] WHERE [albumid]=25
TIME: 0
SELECT * FROM [dnt_photocomments] WHERE [photoid]=340 ORDER BY [commentid] ASC
TIME: 0
UPDATE [dnt_photos] SET [views]=[views]+1 WHERE [photoid]=@photoid