(sqlstr, props)
return sqlstr
遍历所要查询属性，以生成sql语句
遍历所要查询属性，以生成sql语句
遍历所要查询属性，以生成sql语句
def forEachQueryProps(sqlstr, props):
    '''遍历所要查询属性，以生成sql语句'''
    if props == '*':
        sqlstr += ' *'
    elif type(props) == type([0]):
        i = 0
        for prop in props:
            if(i == 0):
                sqlstr += ' ' + prop
            else:
                sqlstr += ', ' + prop
            i += 1
    else:
        raise Exception('props to query must be list')
        return
    return sqlstr
def forEachQueryProps ( sqlstr , props ) : if props == '*' : sqlstr += ' *' elif type ( props ) == type ( [ 0 ] ) : i = 0 for prop in props : if ( i == 0 ) : sqlstr += ' ' + prop else : sqlstr += ', ' + prop i += 1 else : raise Exception ( 'props to query must be list' ) return return sqlstr