sql server - Getting a incorrect WHERE syntax with my sql statement -


hope can , keep getting incorrect "where" syntax following sql statement

using (sqlcommand selectt = new sqlcommand("select [tr_regnumber]                                              dbo.trailerdetail                                              [tr_routes] = '" +trailersroutesallocations[i]+ "'" + "                                              , [tr_classficiation] = '" +trailersvragclassification[i]+ "'", con)) 

i coding in c# (using visual studio)

you have 1 more. write 1 here:

select column1, column2, ... table_name condition1 , condition2 , condition3 ...; 

this copy https://www.w3schools.com/sql/sql_and_or.asp


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -