Union numa Query
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
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
Curtidas 0
Respostas
Anonymous
12/03/2003
As colunas devem ser identicas, ou seja ,
mesmo tipo para cada posição é numero de colunas.
[]´s
mesmo tipo para cada posição é numero de colunas.
[]´s
GOSTEI 0