title: How to get table column-name/header for SQL query in python
body: <p>I have the data in pandas dataframe which I am storing in SQLITE database using Python. When I am trying to query the tables inside it, I am able to get the results but without the column names. Can someone please guide me.</p>
  
  <pre><code>sql_query = """Select date(report_date), insertion_order_id, sum(impressions), sum(clicks), (sum(clicks)+0.0)/sum(impressions)*100 as CTR
              from RawDailySummaries
              Group By report_date, insertion_order_id
              Having report_date like '2014-08-12%' """
  
  cursor.execute(sql_query)
  query1 = cursor.fetchall()
  
  for i in query1:
      print i
  </code></pre>
  
  <p>Below is the output that I get</p>
  
  <pre><code>(u'2014-08-12', 10187, 2024, 8, 0.3952569169960474)
  (u'2014-08-12', 12419, 15054, 176, 1.1691244851866613)
  </code></pre>
  
  <p>What do I need to do to display the results in a tabular form with column names</p>