How to find value Upper Case in SQL Server

Theo: nguyenhaidang.name.vn | 01/07/2016 - 09:22

Hôm nay mình sẽ hướng dẫn các bạn cách tìm ra từ viết hoa (UperCase) trong SQL Server.

Mở SQL Server lên, new query và gõ dòng code này vào

SELECT *   FROM MyTable  WHERE FirstName = UPPER(FirstName) COLLATE SQL_Latin1_General_CP1_CS_AS

Chú thích chút là: MyTable = Tên bảng

FirstName = Tên cột (Column) bạn muốn tìm.

 

 

Back Head Print
Tin khác

Search GridView with Paging on TextBox KeyPress using jQuery in ASP.Net    (28/07/2010)

Bootstrap AutoComplete TextBox example using jQuery TypeAhead plugin in ASP.Net with C# and VB.Net    (28/07/2010)

Disable Button and Submit button after one click using JavaScript and jQuery    (29/07/2010)

Split and convert Comma Separated (Delimited) String to Table in SQL Server    (01/09/2010)

Select Column values as Comma Separated (Delimited) string in SQL Server using COALESCE    (01/09/2010)