How to run this on mysql command style? -
i new write mysql command line. want below code run on mysql command prompt don't know how sort these code here...can please me write following?:
$this->model('e_station') ->select('e_station.station_cd', 'e_station.station_name', 'e_line.line_cd', 'e_line.line_name', 'e_pref_line.pref_cd') ->joinon('e_join', 'e_join.station_cd1 = e_station.station_cd') ->joinon('e_line', 'e_line.line_cd = e_join.line_cd') ->joinon('e_pref_line', 'e_pref_line.line_cd = e_line.line_cd') ->where(['e_station.station_name ?', '%'.$station_name.'%']) ->groupby('e_station.station_cd');
Comments
Post a Comment