Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Question about a SQL search

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-07-11 : 09:15:36
Jaime Romo writes "Im traying to maque a search where i only type a letter and it returns me all the names that start or have the letter im using the %% but it does not work.
can u tell me what can i do.

SELECT *
FROM dbo.Corvi_Q_Usuarios
WHERE name = %%nam%%'


Thanks a lot."

YellowBug
Aged Yak Warrior

616 Posts

Posted - 2002-07-11 : 09:27:40
SELECT *
FROM dbo.Corvi_Q_Usuarios
WHERE name LIKE '%nam%'
Go to Top of Page
   

- Advertisement -