Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Pull info from select clause.

by the_0ne (Pilgrim)
on May 11, 2004 at 20:57 UTC ( #352592=note: print w/replies, xml ) Need Help??


in reply to Pull info from select clause.

Thanks for the replies, but these queries are going to be in a controlled environment. I can make sure they look a certain way syntax-wise. Just can't get rid of functions like coalesce() or datepart.

I installed the SQL::Statement module and tried it out, however, it's choking on the sql syntax. I hate to say it but this is a Sql Server 6.0 db I am working with. The query I am using for my testing works fine when run on the sql server, however, SQL::Statement does not like it and it choking with this error:

SQL ERROR: Bad set function before FROM clause.

It looks like this module expects a certain syntax, but I can't break my query just to make it work with the module. I'll work with the module some more, but so far not seeming to like my query syntax.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://352592]
help
Chatterbox?
talexb mutters, "Those darned cosmic rays.", then gets back to coffee and code. There's plenty of both to go around.

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2017-04-25 14:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (454 votes). Check out past polls.