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 select example 
Sql :: having count oracle two columns 
Sql :: sql values to array of objects 
Sql :: postgres get number of days between two dates 
Sql :: delete * from where id = 1; 
Sql :: date get month number sql 
Sql :: how to install mysql 8.0 windows service 
Sql :: mysql run script 
Sql :: oracle avg 
Sql :: oracle create package body 
Sql :: mysql workbench tutorial 
Sql :: dbms_metadata.get_ddl table 
Sql :: sqlite 3 mac 
Sql :: update table sql multiple set 
Sql :: linux bash run sql command 
Sql :: sql remove check constraint 
Sql :: how to force truncate a table in mysql 
Sql :: Select with remove white spaces in sql 
Sql :: sql pivot 
Sql :: copy column from one table to another without column duplicate postgres 
Sql :: Sequelize model datatype of enum 
Sql :: dublicate row sql 
Sql :: get stored procedure text sql server 
Sql :: sql query to return field name of a table 
Sql :: SELECT everything from a sql table 
Sql :: mysql order by on condition 
Sql :: get size of mysql database 
Sql :: mysql query where in select 
Sql :: get specific column in mongodb 
Sql :: check ksql db health 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =