Guest_imported
New member
- Jan 1, 1970
- 0
URGENT:
This SQL instruction give me an error, and I don't know why... It gives me an error "COLUMN UNKNOWN".
data1:=date;
data2:=formatdatetime('DD-MM-YYYY',data1);
ibquery1.close;
IBQuery1.SQL.Clear;
IBQuery1.SQL.Add('select * from test1 where data>= "'+data2+'"
');
ibquery1.Open;
Why???
In database the field "data" is type date.
I'm using Interbase.
Table design:
ID | DATA | TIME
1 | 10-10-2001 | 10:00:00
1 | 21-10-2001 | 11:00:00
1 | 12-10-2001 | 15:00:00
HELP!!! NEEDED !!!
This SQL instruction give me an error, and I don't know why... It gives me an error "COLUMN UNKNOWN".
data1:=date;
data2:=formatdatetime('DD-MM-YYYY',data1);
ibquery1.close;
IBQuery1.SQL.Clear;
IBQuery1.SQL.Add('select * from test1 where data>= "'+data2+'"
ibquery1.Open;
Why???
In database the field "data" is type date.
I'm using Interbase.
Table design:
ID | DATA | TIME
1 | 10-10-2001 | 10:00:00
1 | 21-10-2001 | 11:00:00
1 | 12-10-2001 | 15:00:00
HELP!!! NEEDED !!!