Search
 
SCRIPT & CODE EXAMPLE
 

SQL

left join in codeigniter query builder

$this->db->select('p.id, p.photo, p.desc, info.desc');
$this->db->from('products as p');
$this->db->join('lang_info as info', 'info.id=p.id and info.lang='.$this->lang, 'left');
$this->db->where('p.id', $this->product_id);
$this->db->where_in('info.name', ['good', 'bad']);
Comment

PREVIOUS NEXT
Code Example
Sql :: phone no data type in sql server 
Sql :: sql server information_schema temp tables 
Sql :: sql change a colum to unique 
Sql :: jwt laravel 
Sql :: oracle apex warn on unsaved changes 
Sql :: 1396(hy00) mysql error 
Sql :: restore database postgresql 
Sql :: encrypt password postgresql 
Sql :: delete ids between sql 
Sql :: What is dialect for Postgres 
Sql :: get records in sql according to month name and count 
Sql :: how to find the number of rows updated in oracle pl/sql 
Sql :: how to connect postgresql database with java 
Sql :: primary key multiple 
Sql :: oracle locked objects 
Sql :: adding generated time in row mysql workbench 
Sql :: mysql grant all on all databases 
Sql :: get last 50 rows sql 
Sql :: sql show table info 
Sql :: PostgreSQL types and C# types 
Sql :: copy data from one table to another mysql 
Sql :: add time to date sql 
Sql :: python simple connect to mysql 
Sql :: mysql datetime with timezone offset 
Sql :: postgresql parse json array 
Sql :: mysql set boolean default value 
Sql :: postgres dump sql insert 
Sql :: inner join 
Sql :: rename column mysql 
Sql :: sql get character at index 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =