I've written an article explaining how one can customize Emacs so that OpenACS bind variables are being replaced with real values. Read it at http://www.thecodemill.biz/publications/articles/emacs-sql-vars/
With the customization in place you can enter query definitions with bind variables and all in an interactive SQL buffer and have Emacs ask you for values for the bind variables in the query. Pure magic!
Works almost perfect with MMM mode for XQL files as described in my article on the XQL DTD over at http://www.thecodemill.biz/publications/articles/xql-dtd/.
/Bart
Request notifications