Perfect! Thanks! Em quinta-feira, 17 de outubro de 2013 16h03min03s UTC-3, Niphlod escreveu: > > you can select an expression.... > > fixed_column = "'admin' as admin" > rows = db(db.table).select(db.table.ALL, fixed_column) > rows[0][fixed_column] ---- 'admin' > > However, in python is much more easier to do then asking the db to do > it.... > > rows = db(db.table).select() > for a in rows: > a['whatever'] = 'admin' > rows[0]['whatever'] ------ 'admin' > > >
-- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

