Mang May Tinh
Mar 3, 2008
Sort the null or blank value in SQL
ORDER BY
CASE
WHEN #sort_column IS NULL THEN '2'
WHEN #sort_column = '' THEN '1'
ELSE '0'
END,
#sort_column [ASC or DESC]
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Nhạc
Nhạc
Theo bước cha
Học tiếng Nhật
Học tin học
Nụ cười
Labels
apache
Browser
Common
Database
Distributed Protocol
Ecommerce
Host and Domain
java
Jdeveloper
JSF
Linux
Milestone
Network Security Hacks
Oracle
Overview
Perl Programming Language
PL/SQL
Print
SED
Server Management
SOA
Spring
Struts
System Administration
Technical Summary
Tools
Utility
Web Service
windows
Blog Archive
►
2016
(1)
►
October
(1)
▼
2008
(13)
►
August
(1)
►
June
(3)
►
May
(3)
▼
March
(4)
Working with Procedures
Working with Functions
ldd command - shared libraries
Sort the null or blank value in SQL
►
February
(2)
►
2007
(70)
►
December
(4)
►
October
(8)
►
September
(6)
►
August
(8)
►
July
(10)
►
June
(7)
►
May
(21)
►
April
(6)
No comments:
Post a Comment