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

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -