Fórum Union numa Query #144528
12/03/2003
0
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
Curtir tópico
+ 0
Responder
Posts
12/03/2003
Anonymous
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
Responder
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)