skip to main
|
skip to sidebar
javanotes2all
Home
About
Contact
Archives
Welcome to my blog, hope you enjoy reading
Thursday, 27 June 2013
Email This
BlogThis!
Share to X
Share to Facebook
Share to Pinterest
Using If Condition In Select Query in mysql
Using If Condition In Select Query in mysql
For Example
select If(Amt>0,'Yes','no')
from
product
the above is not working
Solution:
Select Case
When Amt > 0 Then 'Yes'
Else 'No'
End AliasYourColumnHere
From Product
0 comments:
Post a Comment
Newer Post
Older Post
Home
Add
site views
Large Visitor Globe
Facebook Badge
Javanotes2all
Promote Your Page Too
Follow me
Follow @javanotes2all
Total Pageviews
Labels
android
(8)
database
(43)
eclipse
(17)
GWT
(20)
gwtmobile
(1)
html5
(3)
Interview faq
(5)
java
(93)
JavaScript
(1)
json
(3)
others
(3)
Phonegap
(1)
servlets
(3)
SoftwareDeveloper
(3)
Struts
(4)
SVN
(3)
tomcat
(6)
ubuntu
(24)
Wampserver
(1)
Windows
(2)
Blog Archive
►
2019
(2)
►
January
(2)
►
2018
(2)
►
April
(2)
►
2015
(9)
►
July
(5)
►
January
(4)
►
2014
(23)
►
November
(3)
►
September
(1)
►
August
(1)
►
July
(1)
►
June
(2)
►
May
(2)
►
April
(1)
►
March
(2)
►
February
(6)
►
January
(4)
▼
2013
(120)
►
December
(4)
►
November
(5)
►
October
(4)
►
September
(1)
►
August
(6)
►
July
(6)
▼
June
(15)
Eclipse to Merge Branch into Trunk
Using If Condition In Select Query in mysql
HowTo: Run .jar files in Ubuntu
create the executable jar file using java
Compiling and Running Java Programs in Terminal on...
Folder Lock without any S/W in Windows
Control your keyboard with Java
How To Validate Date With Regular Expression
How To Get Installed Printer name using Java
how to insert auto-increment varchar value in mysql
How to get MAX value of numeric values in varchar ...
How To Add Password Protection To PDF Using IText ...
How to create random string with random characters?
Convert ArrayList To Arrays In Java
Changing the Font Size in Eclipse
►
May
(4)
►
April
(10)
►
March
(8)
►
February
(21)
►
January
(36)
►
2012
(70)
►
December
(22)
►
November
(28)
►
October
(1)
►
September
(1)
►
August
(1)
►
July
(9)
►
June
(3)
►
March
(2)
►
February
(1)
►
January
(2)
Powered by
Blogger
.
Followers
Copyright 2009
javanotes2all
. Powered by
Blogger
.
Blogger Templates
created by
Blogger Templates
WP Themes designed by
EZwpthemes
.
0 comments:
Post a Comment