I need to create a sql string that will be longer then 256 characters. I am pretty sure this will cause a problem but how can I get by this.
In visual basic i would just cancantenate a bunch of strings will that tecnique work in foxpro as well
like this
sqlstr="SELECT sum(add96) as add96, sum(dis96) as dis96, sum(wo96) as wo96, "
sqlstr=sqlstr+"sum(adjdis96) as adjdis96, sum(add97) as add97, sum(dis97) as dis97, "
sqlstr=sqlstr+"sum(wo97) as wo97, sum(markout98) as markout98, sum(add98) as add98, "
sqlstr=sqlstr+"sum(dis98) as dis98, sum(adjdis98) as adjdis98, sum(add99) as add99, "
sqlstr=sqlstr+"sum(dis99) as dis99, sum(adjdis99) as adjdis99, sum(add00) as add00, "
sqlstr=sqlstr+"sum(dis00) as dis00, sum(adjdis00) as adjdis00 from xxxxxxx "
sqlstr=sqlstr+"into table finalBill group by VAL(store)"
And if I can use the same technique how do I execute the string.
Thanks
jimsterS
In visual basic i would just cancantenate a bunch of strings will that tecnique work in foxpro as well
like this
sqlstr="SELECT sum(add96) as add96, sum(dis96) as dis96, sum(wo96) as wo96, "
sqlstr=sqlstr+"sum(adjdis96) as adjdis96, sum(add97) as add97, sum(dis97) as dis97, "
sqlstr=sqlstr+"sum(wo97) as wo97, sum(markout98) as markout98, sum(add98) as add98, "
sqlstr=sqlstr+"sum(dis98) as dis98, sum(adjdis98) as adjdis98, sum(add99) as add99, "
sqlstr=sqlstr+"sum(dis99) as dis99, sum(adjdis99) as adjdis99, sum(add00) as add00, "
sqlstr=sqlstr+"sum(dis00) as dis00, sum(adjdis00) as adjdis00 from xxxxxxx "
sqlstr=sqlstr+"into table finalBill group by VAL(store)"
And if I can use the same technique how do I execute the string.
Thanks
jimsterS