Created
March 15, 2018 16:49
-
-
Save parzibyte/e7b6161516e03a891c9d9cb2079ebc4f 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", "left") | |
->get() | |
->result(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment