You can combine N conditions using AND or OR operators. Here, XXXX can be any numeric or string value.
Examples of LIKE in SQL
The following table has a few examples that show the WHERE clause has a LIKE clause with different '%' and '_' operators:
STTStatement and description 1 WHERE SALARY LIKE '200%' Find all values starting with 200. 2 WHERE SALARY LIKE '% 200%' Find all values that have 200 any position. 3 WHERE SALARY LIKE '_00%' Find all values that have 00 in the second and third positions. 4 WHERE SALARY LIKE '2 _% _%' Find all values that begin with 2 and have at least 3 characters. 5 WHERE SALARY LIKE '% 2' Find all values ending in 2. 6 WHERE SALARY LIKE '_2% 3' Find all values with position 2 in the second position and end with 3. 7 WHERE SALARY LIKE '2___3' Find all values in the five-digit number beginning with 2 and ending with 3.
Let's take a practical example, consider the NHANVIEN table with the records as below.
the which command in linux determines the executable binary, which will execute when you issue a command to the shell. if you have different versions of the same program on your computer, you can use which to find out which shell will use.
the exit command exits the cmd.exe program (command interpreter) or the current batch script. to learn how to use this command, please see the example below.
knowing how to use xcopy command in command prompt, you will easily use commands in cmd professionally. in particular, the xcopy command is extremely useful for those who copy and copy data on the computer.
here are some of the most important security commands for everyday work on linux systems. if you're interested in security issues on your linux system, don't ignore these helpful security commands.
when the certutil command is run by a ca without additional parameters, it displays the current ca configuration. when the certutil command is run on an unassigned ca, the default command to run is certutil -ump.
the defrag command locates and merges fragmented files on local drives to improve system performance. local administrator, or equivalent, is the minimum necessary requirement to run this command.
the eventcreate command allows the admin to create custom events in the specified event log. for an example of how to use this command, please see the example below.