Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  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
 
  Buy Now
  Support
  Download
  Document
  FAQ
  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 Text(CSV)
Default SYSDATE value for DATE columns
Carmen Rodriguez
2016-02-11 03:48:01
Is there anyway to specify as default value for a DATE column the current date?

I have tried with the following:

CREATE TABLE EXAMPLE (DB_ID NUMERIC(18,0) NOT NULL, DB_CREATIONDATE DATE('yyyy-MM-dd HH:mm:ss') DEFAULT SYSDATE NOT NULL);

but it doesn't insert anything in the DB_CREATIONDATE column.

Thanks in advance.
Regards,
Carmen
Re:Default SYSDATE value for DATE columns
HXTT Support
2016-02-12 02:03:00
Supported now. Please download the latest package. You should use
CREATE TABLE EXAMPLE (DB_ID NUMERIC(18,0) NOT NULL, DB_CREATIONDATE TIMESTAMP('yyyy-MM-dd HH:mm:ss') DEFAULT SYSDATE() NOT NULL);
Re:Re:Default SYSDATE value for DATE columns
Carmen Rodriguez
2016-02-13 09:09:13
It worked! Thanks a lot

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