Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: DBI Substring index query and passing value

by SriniK (Beadle)
on Dec 11, 2012 at 10:41 UTC ( #1008260=note: print w/replies, xml ) Need Help??


in reply to Re: DBI Substring index query and passing value
in thread DBI Substring index query and passing value

Hi,
Thanks for your replay.

$name will be like "Christin". the Direct result in sql will be
phone_no Mail_ID +00 00 0000 0000 ********.*****@******.com
In that query the actual result will be +00 00 0000 0000$$********.*****@******.com$$$******, in that im splitting the required phone no and mail id using sub string in sql

hope you understand.
The result is there in SQL. But while running in perl it not showing result must be some special charcter issue.
I tried various methods but not able to get the answer. As of now i have changed the query and splitting done in script.
Thanks
Srinivasan

Replies are listed 'Best First'.
Re^3: DBI Substring index query and passing value
by Anonymous Monk on Dec 11, 2012 at 11:12 UTC

    $name will be like "Christin".

    Well, currently, $name is $name; single quotes don't interpolate. Do check how I modified your query code. (Also worth looking is 7548)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1008260]
help
Chatterbox?
[marto]: Even with shell command recall I find it less time consuming to do such things in a file.
[marto]: I very seldom use one liners for anything which isn't utterly trivial
[Discipulus]: i'm wise enough to never use my oneliners
[Discipulus]: anyway marto, i read th CB logs.. osteopat is what you need

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2017-09-22 08:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (260 votes). Check out past polls.

    Notices?