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