Zeos + Postgresql + D2005
Posted: 11.05.2010, 13:03
Hi,
i have problem with CAST expression AS type commend. I use TZQuery and i want to get TStringField fileds from column (type - text).
So i try:
SELECT
CAST (vname AS varchar(100)),CAST(vvalue AS varchar(100)), id
FROM schemat.baza WHERE vname ~* :var_name ORDER BY vname,id
and i get :
vname - TStringField
vvalue - TMemoField
id - TIntegerField
why vvalue isn't TStringField?
When i use:
SELECT
id,CAST (vname AS varchar(100)),CAST(vvalue AS varchar(100))
FROM schemat.baza WHERE vname ~* :var_name ORDER BY vname,id
where id is on the first place i get :
id - TIntegerField
vname - TMemoField
vvalue - TMemoField
Any ideas?
i have problem with CAST expression AS type commend. I use TZQuery and i want to get TStringField fileds from column (type - text).
So i try:
SELECT
CAST (vname AS varchar(100)),CAST(vvalue AS varchar(100)), id
FROM schemat.baza WHERE vname ~* :var_name ORDER BY vname,id
and i get :
vname - TStringField
vvalue - TMemoField
id - TIntegerField
why vvalue isn't TStringField?
When i use:
SELECT
id,CAST (vname AS varchar(100)),CAST(vvalue AS varchar(100))
FROM schemat.baza WHERE vname ~* :var_name ORDER BY vname,id
where id is on the first place i get :
id - TIntegerField
vname - TMemoField
vvalue - TMemoField
Any ideas?