Re: Aliases in DBI/DBD

From: David N Murray (dmurray_at_jsbsystems.com)
Date: 12/25/04

  • Next message: Jared Still: "Re: Aliases in DBI/DBD"
    Date: Fri, 24 Dec 2004 22:10:48 -0500 (EST)
    To: Robert <rgoud@yahoo.com>
    
    

    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: Jared Still: "Re: Aliases in DBI/DBD"

    Relevant Pages

    • Re: [SLE] Is the list dead
      ... Please avoid top posting and trim your quotes. ... Please use *private* mails! ... Do You Yahoo!? ... Mail has the best spam protection around ...
      (SuSE)
    • Re: /etc/rc.conf: 18: Syntax error: Unterminated quoted string
      ... >> Jose Borquez wrote: ... Why do you think the quotes are an error ... Do You Yahoo!? ... Mail has the best spam protection around ...
      (freebsd-questions)
    • Aliases in DBI/DBD
      ... how do I specify alias in DBI/DBD-Oracle ... DBI/DBD doesn't like double quotes, ... Do You Yahoo!? ... Mail has the best spam protection around ...
      (perl.dbi.users)
    • Re: Web browser question
      ... it seems that you are working to get stock quotes from ... the Yahoo finance. ... ' Loop until the page is fully loaded ... Do Until .ReadyState = 4 ...
      (microsoft.public.excel.programming)
    • Re: reliability problem with Finance::QuoteHist::Yahoo
      ... Sometimes it arises when quotes() is executed, and at other times, it ... Without even looking at your code my guess is that Yahoo! ... reason that free services change their page format is to block people from ... if an individual trader needs a reliable and accurate ...
      (comp.lang.perl.misc)