CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Wrong SQL query (CC + JSP + DB/2)

Print topic Send  topic

Author Message
Gianni
Posted: 08/07/2002, 1:44 AM

Hi,

Using "New Page Wizard" I created Grid+Edit forms for this table:
nr ........ int ... (primary key)
name ...... char
address ... char

The "Key" field for column "nr" is checked both on the grid form and the record form.
The grid form is displayed correctly. So is the edit form, but only for existing records. Infact if I click on "Insert" I get the following error message in the browser window

SQL :select * from PLTDACIRCOLI where INT_CIRCOLO=Null
COM.ibm.db2.jdbc.app.DB2Exception: [IBM][CLI Driver][DB2/LINUX] SQL0401N The data types of the operands for the operation "=" are not compatible. SQLSTATE=42818

How do I correct this?
Thank you very much for your help.
Gianni
Gianni
Posted: 08/07/2002, 3:54 AM

Sorry....
the correct error message is:
SQL :select * from PLTDACIRCOLI where INT_NR=Null
COM.ibm.db2.jdbc.app.DB2Exception: [IBM][CLI Driver][DB2/LINUX] SQL0401N The data types of the operands for the operation "=" are not compatible. SQLSTATE=42818
Gianni

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.