Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol v2.1
  HXTT DBF v5.2
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Hongxin Technology & Trade Ltd. of Xiangtan City (abbr, HXTT)

HXTT ACCESS
constraint NOT NULL is ignored
Zhen Zhang
2006-12-14 03:34:43.0
I used
CREATE TABLE "roundtrip"
(
"pk" INTEGER NOT NULL,
"avalue" BIT,
PRIMARY KEY ("pk")
) to create a new table named roundtrip. Then I read the metadata of this table so as to check whether or not this table was correctly built as expected. However, I've got the following error:
"Required status not the same for column pk. expected: but was:."
SQL Syntax which you provide describes that "Column can store null values, so that constraint NOT NULL is ignored."
I would ask you how this problem can be solved?
Re:constraint NOT NULL is ignored
Zhen Zhang
2006-12-14 03:41:06.0
As the error message included angle brackets, this message is not correctly displayed. I paste it again:
Required status not the same for column pk. expected:<true> but was::<false>
Re:Re:constraint NOT NULL is ignored
HXTT Support
2006-12-14 04:19:43.0
>SQL Syntax which you provide describes that "Column can store null values, so that
> constraint NOT NULL is ignored."
Yeah.

>I would ask you how this problem can be solved?
>PRIMARY KEY ("pk")
You have assigned it as primary key, so that it's impossible to store more than one null value for pk.
Re:Re:Re:constraint NOT NULL is ignored
Zhen Zhang
2006-12-14 06:36:10.0
��DatabaseMetaData.getColumns(...)������roundtrip��columns����������pk������IS_NULLABLE����NO��������������

According to JDBC specification, IS_NULLABLE is defined as follows:
NO means the column definitely does not allow NULL values;
YES means the column might allow NULL values. An empty
string means nullability is unknown.
Re:Re:Re:Re:constraint NOT NULL is ignored
HXTT Support
2006-12-14 06:49:38.0
>��DatabaseMetaData.getColumns(...)������roundtrip��columns����������pk��
>����IS_NULLABLE����NO��������������
����������������ResultSetMetaData.columnNullableUnknown����������IS_NULLABLE��������������YES, NO������������NO.
Re:Re:Re:Re:Re:constraint NOT NULL is ignored
Zhen Zhang
2006-12-14 23:55:03.0
����������IS_NULLABLE����������NO������YES��������������

Search Key   Search by Last 50 Questions




Google
 

Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Email: webmaster@hxtt.com
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap