I have got this code below which should:
Select column odjezd
From table stanice
Order by odjezd
where akce=zakce.Text
SqlCommand combobox = new SqlCommand("SELECT odjezd FROM stanice
ORDER BY odjezd ASC
WHERE akce="+zakce.Text, spojeni);
It gives me this error: Incorrect syntax near WHERE.
Would someone please improve my code? Thanks in advance