Search
 
SCRIPT & CODE EXAMPLE
 

SQL

sql server case sensitive search

SELECT 1
FROM dbo.Customers
WHERE   CustID = @CustID COLLATE SQL_Latin1_General_CP1_CS_AS
    AND CustPassword = @CustPassword COLLATE SQL_Latin1_General_CP1_CS_AS
Comment

sql String comparisons case sensitive

select * from Person.Person 
where FirstName = 'Ken'	COLLATE Latin1_General_CS_AS
Comment

sql like case sensitive

-- Postgresql case insensitive:
SELECT * FROM people WHERE name ILIKE 'JOHN'
-- John
-- JOHN
-- john
Comment

sql string contains case sensitive

SELECT DISTINCT COL_NAME FROM myTable WHERE UPPER(COL_NAME) LIKE UPPER('%PriceOrder%')
# or
SELECT DISTINCT COL_NAME FROM myTable WHERE LOWER(COL_NAME) LIKE LOWER('%PriceOrder%')
Comment

case sensitive SQL

Note that SQL is not case sensitive. However, it is a good practice to write the SQL keywords in CAPS and other names and variables in a small case.
Comment

PREVIOUS NEXT
Code Example
Sql :: sql composite key 
Sql :: close external port 3306 with iptables 
Sql :: ImportError: DLL load failed while importing _sqlite3: The specified module could not be found. 
Sql :: sql group by 
Sql :: get stored procedure text sql server 
Sql :: mysql on kubernetes 
Sql :: export database sql file from xampp using cmd 
Sql :: display first three characters sql 
Sql :: arithmetic operators in sql 
Sql :: postgres get last value 
Sql :: show specific events on mysql 
Sql :: group_concat mysql 
Sql :: postgres full text search example 
Sql :: 2 max value in sql 
Sql :: sql table creation 
Sql :: sqlite clear console 
Sql :: dump sql file to database postgres 
Sql :: SQL AVG() Function 
Sql :: select count concat string sql server 
Sql :: procedure syntax 
Sql :: mysql regex phone number 
Sql :: memberikan password root mysql 
Sql :: MySql Subtract a table from another 
Sql :: left join sql 
Sql :: pl sql if boolean 
Sql :: mysql join column order By and group By 
Sql :: not equal in mysql query 
Sql :: between keyword sql 
Sql :: timestamp to date sql server 
Sql :: query only first letter string 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =