1

i have a table name users and i want to download to csv file by a query, but i dont want to select a password column in table users.

i am new to sql that to fresher, please any one help me. below is my query

function get_all_partnerships_to_download() {

        $this->db->select('*');
        $this->db->from("$this->_users_table");
        $this->db->join("$this->_user_profile_table",  "$this->_user_profile_table.user_id = $this->_users_table.id");
        $this->db->where("$this->_user_profile_table.participate_as_id", 3);
        $this->db->group_by("$this->_users_table.id");
        $this->db->distinct();

        return $this->db->get($this->_table);

    }
coDe murDerer
  • 1,858
  • 4
  • 20
  • 28
qwerty
  • 39
  • 5

0 Answers0