Django Book 翻译
菜单>:
TOC
返回
原文:
``values()`` takes optional positional arguments, ``*fields`` , which specify field names to which the ``SELECT`` should be limited. If you specify the fields, each dictionary will contain only the field keys/values for the fields you specify. If you dont specify the fields, each dictionary will contain a key and value for every field in the database table:
翻译:
``values()`` 方法接受可选的位置参数,, ``*fields`` 参数定义了SELECT中所限定返回的特定字段的名称。如果你指定了这一参数,返回的字典中只会包含你制定的字段的字段名和字段值。如果不指定这个参数的话,返回的字典中会包含数据表中每个字段的字段名和字段值:
备注:
译者: