join query in Codeigniter

इसलिए, मैं आपको दिखाने जा रहा हूं कि कोडिग्नेटर में एक सम्मिलित क्वेरी का उपयोग कैसे करें। इसके अलावा, डेटा को पुनः प्राप्त करें जैसा आप उदाहरण के साथ चाहते हैं। join query in Codeigniter

यहां, हमने शर्त के साथ जुड़ने का उपयोग करने के कई तरीकों को परिभाषित किया है।

साथ ही, डेटा को लेफ्ट जॉइन, राइट जॉइन, फुल जॉइन और इनर जॉइन जैसे कई तरीके लाते हैं।

इसलिए, मैं Codeigniter में एकाधिक जॉइन क्वेरी के साथ कई तालिकाओं के उदाहरण का उपयोग कर रहा हूं। in details click here and learn  join query in Codeigniter

public function getdata(){	

	$this->db->select('*');
	$this->db->from('table1'); // this is first table name
	$this->db->join('table2', 'table2.id = table1.id'); // this is second table name with both table ids
	$query = $this->db->get();
	return $query->result();

	}

Comments

Popular posts from this blog

Row vs Column in hindi

JavaScript Change Background Color