Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 15, 2018 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/47809f7eba71df82eb341ebb3702836b to your computer and use it in GitHub Desktop.
Save parzibyte/47809f7eba71df82eb341ebb3702836b to your computer and use it in GitHub Desktop.
<?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