| | |
how to select null values in condition
Please support our MySQL advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Oct 2006
Posts: 1
Reputation:
Solved Threads: 0
[HTML]
i am having four combo boxes.the item in the combo box is taken from the database.we select the data whatever we want and clicking the submit button report want to be displayed.
While selection in the combo boxes, they may select all the fields sometimes they may select one fields and so on.i want to display records according to the selection.to display records i am using jasper i-report.
front end: JSP back end : My SQL
The problem is in the i-report i can write only one query, i cannot check condition sometimes some field may empty or null.
please send me the query so that i can check null values(ie. if the field is null it want to select all the data regarding that field) and select regarding the data.
[/HTML]
i am having four combo boxes.the item in the combo box is taken from the database.we select the data whatever we want and clicking the submit button report want to be displayed.
While selection in the combo boxes, they may select all the fields sometimes they may select one fields and so on.i want to display records according to the selection.to display records i am using jasper i-report.
front end: JSP back end : My SQL
The problem is in the i-report i can write only one query, i cannot check condition sometimes some field may empty or null.
please send me the query so that i can check null values(ie. if the field is null it want to select all the data regarding that field) and select regarding the data.
[/HTML]
MySQL Syntax (Toggle Plain Text)
SELECT * FROM table WHERE COLUMN IS NULL
Last edited by sn4rf3r; Oct 19th, 2006 at 11:12 am.
![]() |
Similar Threads
- datagrid replacing null values (VB.NET)
- dynamic combo load problems (PHP)
- Exception Data is Null. This method or property cannot be called on Null values. (VB.NET)
- search (MS SQL)
- Need help diplaying null values (PHP)
- help with polymorphism and inheritance...getting null values (Java)
Other Threads in the MySQL Forum
- Previous Thread: Daily Auto MySQL Backup saved to directorty
- Next Thread: Foreign Keys
| Thread Tools | Search this Thread |
agplv3 alfresco amazon api artisticlicense aws bizspark breathalyzer camparingtocolumns changingprices cmg communityjournalism contentmanagement contractors copyright count court crm database design developer development distinct drupal dui ec2 email enterprise eudora facebook form foss gartner gnu government gpl greenit groklaw groupware hiring hyperic images innerjoins ip joebrockmeier join journalism keyword keywords kickfire laptop law legal license licensing linux maintenance managing mariadb matchingcolumns metron micromanage microsoft microsoftexchange mindtouch montywidenius mozilla multiple music mysql mysqlcolumnupdating mysqldatetimeordermax() mysqlindex mysqlinternalqueries mysqlquery mysqlsearch news open-xchange opendatabasealliance opengovernment opensource penelope php priceupdating query referencedesign reorderingcolumns resultset saas select sharepoint simpledb sourcecode spotify sql syntax techsupport thunderbird transparency virtualization





