Created
March 15, 2018 16:46
-
-
Save parzibyte/63922e15309f93ca206a5bd190a16d81 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return $this->db | |
->select("columna 1, columna 2, columna 3 AS otroNombre") # También puedes poner * si quieres seleccionar todo | |
->from("tabla1") | |
->join("tabla2", "tabla2.id = tabla1.id_tabla2") | |
->join("tabla3", "tabla3.id = tabla1.id_tabla3") | |
->get() | |
->result(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment