Hi Monks,
I am using perl DBI module for my mysql queries one of my query fails to execute and generates an error message:
DBD::mysql::st execute failed: Can't find file: '.\prod\p.frm' (errno: 13)
the query is presented below:
select left(B.B_num,3) as JD, sum(B.B_COUNT) as Doc_Cnt, P.PROJECTED_VOL as Proj_Vol, P.DD_RECD as DD_Recd, P.JD_CURRENT as JD_Current, P.JD_FUTURE as JD_Future from batches B left join projectedvolume P on P.REPORT_IMPORT_DT = B.REPORT_IMPORT_DT where B.REPORT_IMPORT_DT = '2005-10-12' group by left(b_num,3)
When I copied this query to mysql prompt for query, only half of this got pasted and i was not able to key more (is there any maximum query length?).
The query that worked is:
select left(B_num,3) as JD, count(B_Num) as BatchCount, sum(B_count) as DocCount from Batches where report_import_dt = '2005-11-10' and b_status in ('RD', 'RO') group by left(b_num,3)
Pls. help me to overcome this issue
Thanks
PDL_Babu
Edit: Tidied SQL (davorg)
In reply to Perl DBI Error by pdl_babu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |