how to scan variable

  • like in Oracle we use special character '&' infront of variable name like &name to scan the value of the variable, what is the same procedure in SQL server 2005. ie can i make a dynamic querry

  • [font="Verdana"]In SQL Server you need to use % symbol

    SELECT NAME from employee where name like '%kumar%'

    The above query will return all the names from employee table which has kumar in it.[/font]

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply