Search
 
SCRIPT & CODE EXAMPLE
 

SQL

wildcard in sql

SELECT * FROM table_name WHERE UPPER(col_name) LIKE '%SEARCHED%';
SELECT * FROM table_name WHERE col_name LIKE '%Searched%';  -- Case sensitive

SYMBOL	DESCRIPTION	(SQL)                       EXAMPLE
%	    zero or more characters	                bl%      'bl, black, blue, blob'
_	    a single character	                    h_t      'hot, hat, hit'
[]	    any single character within brackets	h[oa]t   'hot, hat', but NOT 'hit'
^	    any character not in the brackets	    h[^oa]t  'hit', but NOT 'hot, hat'
-	    a range of characters	                c[a-b]t   'cat, cbt'
Comment

_ Wildcard in SQL

SELECT *
FROM Customers
WHERE country LIKE 'U_';
Comment

[] Wildcard in SQL

SELECT *
FROM Customers
WHERE country LIKE 'U[KA]%';
Comment

! Wildcard in SQL

SELECT *
FROM Customers
WHERE last_name LIKE '[!DR]%';
Comment

% Wildcard in SQL

SELECT *
FROM Customers
WHERE last_name LIKE 'R%';
Comment

PREVIOUS NEXT
Code Example
Sql :: select from 3 tables one is empty 
Sql :: ring SQLite create a SQLite database, add new records then display the data 
Sql :: sql select upcoming birthdays 
Sql :: postgresql get tables where column is foreign key 
Sql :: How to query data in many to many relationship in flask sql alchemy 
Sql :: sqlx many to many join 
Sql :: sql joins explained 
Sql :: primary key in sql 
Sql :: practice sql queries 
Sql :: mysql select count if contains 
Sql :: modify column name in tsql 
Sql :: convert sql query to laravel eloquent 
Sql :: capabilities of sql select statements 
Sql :: remove accented characters in bigquery 
Sql :: How to Remove milliseconds from Date time 
Sql :: sql query made by rahuldev 
Sql :: enlever les doubles espaces dans les tables postgresql 
Csharp :: vb.net yes no cancel 
Csharp :: open link c# 
Csharp :: unity key detection 
Csharp :: random number generator unity 
Csharp :: how to stop window from terminating c# visual studio 
Csharp :: Uncaught TypeError: $(...).validate is not a function 
Csharp :: c# delete files older than x months 
Csharp :: print out a dictionary c# 
Csharp :: Linq - Random Elements 
Csharp :: c# create new thread 
Csharp :: c# cast string to double 
Csharp :: c# read file by line 
Csharp :: c# replace string case insensitive 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =