Re: Aliases in DBI/DBD

From: Jared Still (jkstill_at_cybcon.com)
Date: 12/25/04

  • Next message: Darren Duncan: "ignore this - testing new email connection"
    To: David N Murray <dmurray@jsbsystems.com>
    Date: Sat, 25 Dec 2004 13:01:36 -0800
    
    

    Or even my $sql=q{select to_char(mf.ROW_MOD_DATE,'MM/DD/YYYY') "Modify
    Date" from table1 mf}

    Jared

    On Fri, 2004-12-24 at 19:10, David N Murray wrote:
    > If you are trying something like
    >
    > my $sql = "select to_char(mf.ROW_MOD_DATE,'MM/DD/YYYY') "Modify Date" from
    > tbl mf";
    >
    > then its perl that's balking. (List hint: actual code samples are
    > extremely helpful.) You need to escape the quotes within this string
    > (well, that's one way to do it, anyway):
    >
    > my $sql = "select to_char(mf.ROW_MOD_DATE,'MM/DD/YYYY') \"Modify Date\"
    > from tbl mf";
    >
    > HTH,
    > Dave
    >
    > On Dec 24, Robert scribed:
    >
    > >
    > > Hi list, how do I specify alias in DBI/DBD-Oracle
    > >
    > > select
    > >
    > > to_char(mf.ROW_MOD_DATE,'MM/DD/YYYY') "Modify Date",
    > >
    > > mf.mf_name "Manufacture"
    > >
    > > from table1 mf
    > >
    > >
    > >
    > > DBI/DBD doesn't like double quotes, is there any other way?.
    > >
    > >
    > >
    > >
    > > __________________________________________________
    > > Do You Yahoo!?
    > > Tired of spam? Yahoo! Mail has the best spam protection around
    > > http://mail.yahoo.com


  • Next message: Darren Duncan: "ignore this - testing new email connection"

    Relevant Pages

    • Re: What will you be hunting with this Fall?
      ... > a rear sight and a slightly prouder front sight than ... > add a forward sling loop and a sling button toward the ... > Do You Yahoo!? ... Mail has the best spam protection around ...
      (rec.hunting)
    • Re: Duplicate disk in a volume group
      ... think this one would not be good because there is still an entry for a GOOD ... Duplicate disk in a volume group ... Do You Yahoo!? ... Mail has the best spam protection around ...
      (AIX-L)
    • RE: FreeBSD on Dell PE850
      ... When I install using the 6.1 disk one I get the error "Add of package ... Do You Yahoo!? ... Mail has the best spam protection around ... MailScanner thanks transtec Computers for their support. ...
      (freebsd-questions)
    • Re: [kde-linux] Cant login via kde - hangs when "initializing peripherals"
      ... failsafe term then startkde - no problems ... I can login in under gnome - no problem. ... Do You Yahoo!? ... Mail has the best spam protection around ...
      (KDE)
    • Re: fstab and LABEL=
      ... Plus I agree with Tim that it would be better if we could be left in ... new package is installed, either on it's own or at the whim of a package ... Do You Yahoo!? ... Mail has the best spam protection around ...
      (Fedora)