It allows block of code to expand
or collapse when using the outlining feature of the Visual Studio Code Editor.
You can write namespaces, classes, methods, interfaces, delegates, events
inside it.
It is used commonly when you are Selecting the Result set on the base of some parameter or condition , or to optimize the Sql to generate the accurate query at Runtime according to the Requirements. .
suppose we have a Stored Procedure which takes a single Parameters , which is a table name and generates the query according to it.
LIKE operator is used to filter Records for a specified pattern in a column. Syntax: SELECT column_name(s) FROM table_name WHERE column_name LIKE pattern; Use:
SELECT*FROMPersons
WHERENameLIKE's%';
Above query will display All those Person whose name Starts with 's'.