Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Error "'exists ^0^' has chars not alphanumeric or underscore in perl"

by parv (Priest)
on Jan 25, 2013 at 14:00 UTC ( #1015350=note: print w/ replies, xml ) Need Help??


in reply to Error "'exists ^0^' has chars not alphanumeric or underscore in perl"

"2", too, is not a number; see https://rt.cpan.org/Public/Bug/Display.html?id=80423. SQL'Parser seems to be unsuitable to drive even moderately complex queries.

Perhaps look for some other Excel file handling module that avoids SQL'Statement set of modules?.


Comment on Re: Error "'exists ^0^' has chars not alphanumeric or underscore in perl"
Re^2: Error "'exists ^0^' has chars not alphanumeric or underscore in perl"
by documents9900 (Initiate) on Jan 25, 2013 at 15:59 UTC
    Thanks all for the help. As of now, I have re-wrote my sql's to get the desired results however the sql is not effective (though giving the correct result set) My Data was
    C1 C1 C2 C2 (Modified) C3 (New)
    My requirement was to find only New records. So i got my result by running a small query of records present in table 2 which are not present in Table 1. However same was not working fine in perl.

    I rewrote my sql in such a way that I used minus first which gave me C2 and C3 records and then i again minus those records which are present in both. In short find out those records which are changed or new and then removed the changed records. So i got the new records.

    Now with respect to solutions provided by all of you, I got to know the Report::Excel will not be to handle the complex queries. Also, I cannot use any other thing as I have a huge program which will require more time to rewrite if I use different module. Also, I didn't get much time to read on interpolate variables as suggested, but still the point is the query works fine if it is exists clause and it doesn't if it is not exists clause. Probably I will read first and then will comment. Thanks all for your help

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1015350]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2014-09-20 13:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (159 votes), past polls