[eluser]vickel[/eluser]
is there an active record function to create SQL views?
something short to substitute e.g.
Code:
$sql = "CREATE OR REPLACE VIEW my_new_view AS
SELECT *
FROM tableA
";
if not, is there a way to combine above $sql syntax with active record? lets say combine
Code:
$sql = "CREATE OR REPLACE VIEW my_new_view AS"
with
Code:
$this->db->select('*');
$this->db->from('tableA');
and then call it like below:
Code:
$query = $this->db->get();
return $query->result();