Ah. You need use cursor if you're doing a non-SELECT raw sql thingie