Union numa Query

Delphi

12/03/2003

Estou tentando fazer uma UNION, onde é que eu estou errando?

Query.SQL.Add(´Select * from extratoconta where (vencimento >= ´

+#39+ maskedit1.text+ 39+´) and (vencimento <= ´ +39+

maskedit2.text+ 39+´)

UNION All (Select * from extratofornecedor where (vencimento >= ´

+39+ maskedit1.text+ 39+´) and (vencimento <= ´ +39+

maskedit2.text+ 39+´))´);
Grato pela ajuda


Anonymous

Anonymous

Curtidas 0

Respostas

Anonymous

Anonymous

12/03/2003

As colunas devem ser identicas, ou seja ,
mesmo tipo para cada posição é numero de colunas.

[]´s


GOSTEI 0
POSTAR