Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol v5.0
  HXTT DBF v7.1
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
  HXTT Word v1.1
  HXTT XML v4.0
Offshore Outsourcing
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
   
   
   
Heng Xing Tian Tai Lab of Xi'an City (abbr, HXTT)

HXTT ACCESS
constraint NOT NULL is ignored
Zhen Zhang
2006-12-14 03:34:43
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
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
>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
������DatabaseMetaData.getColumns(...)���s������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
>������DatabaseMetaData.getColumns(...)���s������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
������������������������������IS_NULLABLE����������������������NO������������������YES��������������������������2������

Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Refund | Sitemap