I know this is a simple question, but I can't get it to work.
This is my query in my SqlCommand:
SELECT * FROM zipcode WHERE city LIKE @prefixtext + '%' ;
I only want 10 results, every other answer suggests
SELECT TOP 10 * FROM zipcode WHERE city LIKE @prefixtext + '%' ;
SELECT * FROM zipcode WHERE city LIKE @prefixtext + '%' LIMIT 10 ;
both do not work
zipcodereally your table name, or the name of the column you want to retrieve? Basic query format isSELECT column_name(or*for all columns) ` FROM table_name WHERE ...`SqlCommandobject?