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
I believe these are all correct.
Oracle:
SQL Server/Sybase:
DB2/PostgreSQL:
MySQL: