DATA Field Problem

This is the international (english) support forum for the SQLite Administrator developed and maintained by Orbmu2k.

Moderators: gto, EgonHugeist, Orbmu2k

Locked
maben
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 09.06.2007, 09:41

DATA Field Problem

Post by maben »

I have to convert a db table from (small example):
CREATE TABLE [dataold] (
[id] INTEGER NULL PRIMARY KEY,
[data_txt] TEXT NULL
)

to the table:
CREATE TABLE systems (id INTEGER NOT NULL PRIMARY KEY,date DATE)

I an insert for the migration:
INSERT INTO 'systems' SELECT id, data_txt FROM 'dataold';

The data are stored in the data_txt in the following format DD.MM.YYYY

Everything looked fine but when I looked to the inserted data-fields the new generated data fileds are empty.

I open the database file within an other SQlite Client and all the data items are there ...

What could be wrong?
Thanks for your help!
Orbmu2k
SQLite Admin Developer
SQLite Admin Developer
Posts: 38
Joined: 07.12.2005, 07:51
Contact:

Post by Orbmu2k »

Date values must be formated yyyy-MM-dd
Locked