There are many solutions, most are pretty straight forward. I'd suggest using
. To make it even easier, you can use
, which figures out the columns from the database schema directly, assuming you're dealing with some of the standard databases like Mysql or postgres. Of course, if you don't want any machinary, you can always use