title: SQLAlchemy: Get only one column
body: <p>I'm trying to get all the rows in a table, but only one column. The model looks like this:</p>
  
  <pre><code>class Person:
      id= db.Column(db.String(11), primary_key=True, nullable=False)
      name = db.Column(db.String(255), nullable=False)
      city = db.Column(db.String(255), nullable=False)
  </code></pre>
  
  <p>I want to get the <code>name</code> column ONLY but I can't find anything on how to do this.
  I've tried stuff like:</p>
  
  <pre><code>Person.query.get(person.name)
  </code></pre>
  
  <p>The SQLAlchemy documentation doesn't help at all.</p>