skip to main
|
skip to sidebar
Development Interest
.NET, C#, SQL
Wednesday, April 22, 2009
SQL right, left Modulo
declare @a int, @b int, @c int, @d int
select @a = 568788
select @b = left(@a,3)
select @c = right(left(@a,3),2)
select @d = right(left(@a,3),2)%10
SELECT @b, @c, @d
--Output
568 68 8
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
►
2010
(4)
►
May
(3)
►
April
(1)
▼
2009
(17)
►
October
(1)
►
September
(2)
►
August
(2)
►
July
(3)
►
May
(2)
▼
April
(3)
object[] myArray = new object[] { 1,2,3};ArrayList...
COALESCE SQL
SQL right, left Modulo
►
March
(2)
►
February
(2)
►
2008
(2)
►
October
(2)
►
2007
(1)
►
November
(1)
About Me
mittal
View my complete profile
No comments:
Post a Comment