title: How can i just read from database for android
body: <p>I try to write a program for dormitory's refectory. I take infos from dormitory's director and data will be probably as excel. I can convert this csv, db or something like that.</p>
  
  <p>But for example if i make a table what has 30 columns, should i write these in the code one by one or can i do that automatically. Because i research on the internet and i always see they create database and after read it in the code.</p>
  
  <p>For example</p>
  
  <pre><code> public void onCreate(SQLiteDatabase db) {
    String sql = "CREATE TABLE " + TABLE_COUNTRIES + "(id INTEGER PRIMARY KEY,country_name TEXT,country_code TEXT" + ")";
  </code></pre>
  
  <p>in this code, id country_name and country_code had written with hand. If we have more columns how can i do that with easily. </p>