I have two tables.. I want to update one table with the count of each colume from the pervious table. I have been able to do it using the query bulider and when ran, it works but I want to take the SQL statment and copy it into my moduel however it won't work. It will not let me format the SQL statment and remove put the whole statement on one line. I'm new at this so I don't really understand why I am unable to do this. Below is the code I have. I also have done this with other update querys that I didn't count, just simply copied from one table to another and that worked fine.
I use db.execture "the sql stament" because the query is so long it copies it one two lines and when I try and make it all one one line it doesn't work. Its at the point where its (SELECT COUNT(BlockRege nTemp From BLOCKNUM) AS CountOfBLOCKNUM .
Thanks
I use db.execture "the sql stament" because the query is so long it copies it one two lines and when I try and make it all one one line it doesn't work. Its at the point where its (SELECT COUNT(BlockRege nTemp From BLOCKNUM) AS CountOfBLOCKNUM .
Thanks
Comment